I have similar question.
I have initialized my Database in OnCreate(). But I want to access the db
from service. Any help would be appreciated.
On Wed, Apr 13, 2011 at 11:44 AM, ABSOLUT wrote:
> Many thanks,
>
> Yes! I had the initialization during the construction and no in my
> TabActivity,
Many thanks
On 13 abr, 18:50, Kostya Vasilyev wrote:
> 13.04.2011 19:44, ABSOLUT пишет:
>
> > One newbie question, If I would like that the "SQLiteDatabase db"
> > could use in other functions, how does I initialize in the OnCreate?
>
> class MyActivity {
>
> // Declare the variables in the class
13.04.2011 19:44, ABSOLUT пишет:
One newbie question, If I would like that the "SQLiteDatabase db"
could use in other functions, how does I initialize in the OnCreate?
class MyActivity {
// Declare the variables in the class, outside any method
// This way they are accessible to all methods i
Many thanks,
Yes! I had the initialization during the construction and no in my
TabActivity, so doen't works.
One newbie question, If I would like that the "SQLiteDatabase db"
could use in other functions, how does I initialize in the OnCreate?
Thanks and sorry for my english!
--
You received
13.04.2011 18:32, lbendlin ?:
at com.es.tele.tele.(tele.java:77)
What's at line 77?
The default no-arguments constructor generated by the compiler :)
More interesting is line 100 in ContextWrapper.java, one line up in the
stack dump.
@Override
public Context getApplicationConte
It may have to do with the initialization of the database during the
construction of your TabActivity:
base baseDatos = new base(this,"programacion",null,1);
SQLiteDatabase db = baseDatos.getWritableDatabase();
These fields are assigned during the construction of your TabActivity.
Move th
at com.es.tele.tele.(tele.java:77)
What's at line 77?
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers
7 matches
Mail list logo