Hi Please help me, I am struggling with this problem almost a day.
On Thu, Oct 13, 2011 at 5:57 PM, Manikandan M <[email protected]>wrote: > Hi > > I integrated c2dm in my application its working fine. once c2dm > notification came i do some database operation so i need the context > to create OrmLiteSqliteOpenHelper object. > > OrmLiteSqliteOpenHelper lDatabaseHelper = > OpenHelperManager.getHelper(context.getApplicationContext()); > > This is fine in normal cases. > > Suppose if i force stop my application manually from settings- > >application->manageapplication. if any c2dm message came after i am > unable to create OrmLiteSqliteOpenHelper object. it seems application > context getting null. > > Exception : > java.lang.IllegalStateException: Could not find OpenHelperClass > because none of its generic parameters extends > OrmLiteSqliteOpenHelper: null > > How do i get the application context after force stopping the > application. > > Please help me . > > -- > 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 -- 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

