1. Check out our app, Forums for Android! Download and leave feedback here!

Notepad Tutorial Question

Discussion in 'Application Development' started by scorpiobuzz, Aug 30, 2010.

  1. scorpiobuzz

    scorpiobuzz New Member
    Thread Starter
    5

    Aug 30, 2010
    2
    0
    5
    Working through the Notepad tutorial and have a question. When it builds the database with the fields rowid, title, and body - all three are private static final strings. But when a method like fetchnote() runs, it uses a long id to get the note. How does the method get that id if rowid is a string? I would like to modify the tutorial a bit and have an activity call a listactivity. The listactivity will display everything in the database, then, when a user clicks an item, I would like to copy just that entry into a new database and send the row id back to the calling activity. But I can't figure out how to get it to copy the entry into the new database because the tutorial uses a row id to make adjustments and my new database would be blank. Does that make sense? I'm new to this. :)
     

    Advertisement

Share This Page

Loading...