Android Application Development Tutorial - 120 - Reading SQLite Database with Cursor

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
11,271
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Aug 20, 2011

Check out the full series at http://www.thenewboston.com/

Here is a link to the mybringback YouTube Channel. Go and subscribe now!

http://www.youtube.com/user/mybringback

Also, the mybringback official website:

http://mybringback.com/

  • likes, 2 dislikes

Link to this comment:

Share to:

Top Comments

  • You are a programming God xD

  • 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?

see all

All Comments (26)

Sign In or Sign Up now to post a comment!
  • 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.

  • @mybringback

    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

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more