[android-developers] Re: Sqlite data base problem , method getWritableDatabase() is not working

2009-08-05 Thread Saurav Mukherjee
i dont know how far i am right, but doesn't the context change when u instantiate a new activity object? myact maobj=new myact(); hence the exception. jus move the code in open() to the line after dbhelper instatiation. it should work fine. there is no need to create a new activity object. On

[android-developers] Re: Sqlite data base problem , method getWritableDatabase() is not working

2009-08-05 Thread kalyan simhan
i second saurav.. do this: public class myact extends Activity { public static final String KEY_ROWID = _id; public static final String KEY_VEHICLE = vehicle; public static final String KEY_ROUTE = route; public static final String KEY_COUNTRY = country; public static final

[android-developers] Re: Sqlite data base problem , method getWritableDatabase() is not working

2009-08-05 Thread saptarshi chatterjee
Thank You Brothers . It did solve the problem . Thank You Sourav , Thank you Kalyan On Aug 5, 7:17 pm, kalyan simhan kalyansim...@gmail.com wrote: i second saurav.. do this: public class myact extends Activity {     public static final String KEY_ROWID = _id;     public static final String