Android Application Development Tutorial - 120 - Reading SQLite Database with Cursor
Top Comments
All Comments (26)
-
Hi Travis, here asking for help I am traing to read and String form my SQLite, in the tutorial you search by id, but how can we search by name like writing in the EditText the name of the person.
And congrats for the tutorials
-
@LeonSon10 You need to check out the LogCat in Eclipse, which will tell you more about the error.
-
I couldn't get it to work, it kept crashing when trying to view. Downloaded Travis's code, still no luck. Deleted and recreated the AVD, that fixed it.
-
I spent hours trying to figure out why this would not work. As it turns out, my code was spotless. The emulator would NOT work with SQLite.
-
My one works! ^o^
-
@natsud2 and for future devs-in-training who run into an issue with the View button- I had the same problem, it was the manifest. Under the SQLView activity's intent-filter, the category was set to LAUNCHER which was interfering with the Splash screen's LAUNCHER category, so I set it to DEFAULT which remedied the problem. Not sure why it wouldn't throw that error upon calling the Splash screen, but that fixed it for me.
-
Yes. For the most part. ;)
-
from the previous tutorials, android create a database and empty table...
what if in the first load of a database i want to have already an item?
plzz help me..
-
@LeonSon10 same problem here
-
@natsud2 i didn't solve it. I just followed mybringback sugestion: download the code at mybringback(dot)com
You are a programming God xD
RisingOfTheMilkyWay 6 months ago 12
I'm getting an error when i click the view button. I've commented the code and i've foun out that it's the cursor that is not allowing me to open that activitie. Anyone knows what can i do?
LeonSon10 6 months ago 7