I have a text file. The following code is used to read the file.
char line[80];
while(condition)
{
ifFile >> line;
...
}
Whenever there is a blank line this code skips that line and reads next one. How to read the blank line?
Thanks in advance
you really should ask all these coding related questions in the developing and hacking forum as there are not himalaya spc
so you are more likely to get help fast from developers there
Related
Hello,
I want to develop a simple touch scroll program launcher in C# like seen on TF3D under show all programs. So basically it should work like the KList source found in this forum and should point to the startmenu / programs directory. For each KItem there should be extracted/drawn the icon of the *.lnk or *.exe and the name of the programs. On tapping the KItem the selected program should be executed.
The launcher/Kitems should have a background image.
I thought before I will start developing (start project would be the KList project) I ask you if there is maybe a similar project in development where I could start out?
Thanks in advance,
lordbein
something like this :
http://forum.xda-developers.com/showthread.php?t=437773
But you should really adhere to the forum rules and post this question in the general questions thread...
thx for your reply. I will make my question in the General Q. thread. By the way the link to this thread is something that could be compared to what I am looking for. Is there some source code available for this project?
Hello,
I would like to get a list of database names in code. I'm not looking for databases outside my application/package, just those in my /data/data/<my_package>/database folder.
I can easily locate them on the file system and open them using adb and sqlite3,
but I need to dynamically get a list of databases so that I can open and manage them in code.
I currently use a separate database to keep track of database names as they get created/deleted through my application, but I imagine there is a way to get a list of databases directly via SQL query or some sqlite library call.
Can anyone help me with this?
Thanks,
-dj
This should be in the "Android Development" forum.
BTW, I tried to post this question in a more topical "Android Development" forum, but I'm an XDA newb and don't have permissions to post in there.
Maybe these links can help you? I don't do much droid programming anymore and I never worked with databases in droid. Also welcome to XDA
http://www.devx.com/wireless/Article/40842
http://developer.android.com/reference/android/database/sqlite/package-summary.html
solution
The solution turned out to be very simple.
The main application context has a databaseList() function that, conveniently, returns a list of database names associated with the application.
String[] dbList = getApplicationContext().databaseList();
Thanks for the links dbzfanatic. devx looks like a good resource... it's going on my bookmark bar for sure.
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
database names
dbzfanatic said:
Glad I could help and thanks for posting the solution for others who might have the same question. Since it's a string array I'm guessing the function just returns the DB names and not handles to them?
Click to expand...
Click to collapse
Correct, just a list of the database names.
I need a few more posts before I'm permitted to post a link, but this is the approximate reference link:
developer.android.com/reference/android/content/Context.html#databaseList()
I am new to the android developement. I been reading tutorials , learning and testing.
I am making my own personal app , and I need to know how to generate a string of letters and letters between A-Z and 0-9.
I want a button to generate a a string of 9 Characters between A-Z , 0-9 and when its generated it shows it in a plain text box.
If somebody could help this would be apreciated.
Also with this code I'll be able to learn from it and use it in other apps !
thanks
I'm just hoping someone will be able to help me ! I am not asking for you to code it for me. but only to help me !
thanks
Sweet!
Hello everyone,
I am looking for a tool to help me memorize arabic text. This tool should be similar to this one, "How to Memorize Verbatim Text - Productivity501". Please search for that article thru Google as outside links are not allowed here. The tool is at the bottom of the article.
The tool should be able to extract up to first 3 letters of an Arabic word when I copy paste the Arabic text into the tool field box.
Can this be done automatically or will I need this be done manually where someone goes through the text and inserts first 3 letters from each word. What programming language can this be coded in? Which would give the best result? I want it to be a fluid user experience.
Here is an example of Arabic text. Please search for "Learn Quran" thru Google as outside links are not allowed here.
Thanks!
So you want someone to paste text into a box, then this "tool" would parse the data & extract the first 3 characters... then what? What will this tool do with those 3 letters? Simply identify them?
post-mortem said:
So you want someone to paste text into a box, then this "tool" would parse the data & extract the first 3 characters... then what? What will this tool do with those 3 letters? Simply identify them?
Click to expand...
Click to collapse
Hi post-mortem, thank you for your reply. yes a tool that wold extract the first 3 letters or just the first letter of every word of a text that you paste on the tool. let's say that certain tool has 2 boxes. on the first box, you paste a text/paragraph. then after pasting it there, the tool would extract the first letter of all the words in the text and show those letters on the 2nd box of the tool. Please check for this article thru google, "How to Memorize Verbatim Text - Productivity501". You will find a very similar tool at the bottom of that article. The tool we want is very similar to that, only that the texts we want to extract the first 3 letters are arabic texts taken from Qaran. Please search for that article thru Google as I am not allowed to post the link here.
Nothing further to do with those extracted first 3 or first letter of all the words in the text. just extract them and show on another box.
Now I would need to know what programming language can be used in coding this tool?
Thank you very much.
You can use any programming language to do that, it's just simple parsing of text. You just look for a space character & take the 1st letter that appears after the space (don't forget the very 1st character). This is even easier than what I thought you wanted, because you don't need to look anything up, and because the Quran has no punctuation, like commas, parentheses, etc.
You can forget all about what you're trying to accomplish now, and just turn to the basics of Android app development. Find a book or online resource to guide you in making an app, and follow that.
Any Dev here that can offer a tiny bit of help, I will be very appreciated.
My first foray into this is to reverse engineer an APK.
I am NOT trying to "crack" or cheat anyone out of their just compensation for their work., FWIW.
Anyhow, I started by searching for a string displayed within the running app (a toast); used jadx-gui.
Found it in strings.txt. grabbed the "equivalent" symbol for the string I wanted.
Searched for that symbol in all the files, but not one occurrence in any .java source.
Did find it in a .so file which I believe follows the ELF file format; but have no idea where to go from here.
Anyone???
Sorry for the duplicate post. Not sure how it happened.
So no one can help??? C'mon, folks!!