Well I just create a private instance of the helper class in every
activity and then I get a database in a local variable using
helper.getWriteableDatabase();
 I think you can probably go to the sqlite prompt in adb using
sqlite3 /data/data/<package name>/databases/<database name>
   try to query the database using select, if it doesn't contain any
data well try to remove the database and try creating it again.

On Jun 25, 4:34 pm, Ramsey Statz <[email protected]> wrote:
> Thanks.  I did that though and I guess the real problem here is that
> my database is not getting transferred from one activity to the next.
> I can insert data into it in one activity (I know for sure that data
> is getting inserted).  But then when I go to read the data from it in
> a different activity (a ListView that is supposed to be populated by
> the data in this database), there is no data in the database for that
> activity.
>
> So, I guess the real question I'm asking is: how do you make sure that
> the data gets transferred/is able to be used in multiple activities?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to