On 12/14/2010 11:18 AM, Kostya Vasilyev wrote:
NotesDbAdapter actually doesn't need Activity, it needs a Context (which is a
superclass of Activity). It's then passed into
SQLiteOpenHelper subclass, to get application-specific database file location.
I'm not entirely clear on what Row class is supposed to be. Can you pass an
Activity or Context reference through class/methods
parameters, all the way to where you need it?
I guess that's what I'm wondering. If Activity gets the context from
one of its superclasses, then can I get one some other way? I guess you
are saying that when I instantiate the Row class, I could just pass 'this'
to it from the Activity that I am using it from, then pass that to
the database instantiator in the Row class. Is that the best way to
get the context?
Is the context specific to the app, or to the activity?
Thanks,
Toby
--
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