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 these two lines into your onCreate, where your TabActivity should be 
initialized.

   ...
   base baseDatos;
   SQLiteDatabase db;
   ...

  public void onCreate(Bundle savedInstanceState) {
     ...
     ...
     baseDatos = new base(this,"programacion",null,1);
     db = baseDatos.getWritableDatabase();
     ...
  }


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