[android-developers] Get Application Context After Force closed

2011-10-13 Thread Manikandan M
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

Re: [android-developers] Get Application Context After Force closed

2011-10-13 Thread Manikandan M
Hi Please help me, I am struggling with this problem almost a day. On Thu, Oct 13, 2011 at 5:57 PM, Manikandan M c2dmdevelo...@gmail.comwrote: 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

Re: [android-developers] Get Application Context After Force closed

2011-10-13 Thread Studio LFP
Try using the context that is passed to the receiver instead of the application context. The application context is different and I believe they recommend not using it unless it is for very specific purposes. Steven Studio LFP http://www.studio-lfp.com On Thursday, October 13, 2011 1:33:46 PM

Re: [android-developers] Get Application Context After Force closed

2011-10-13 Thread Manikandan M
Hi steven, Thanks for the reply. yes the context which i used is receiver context only but i dont have any luck. it through same exception. On Fri, Oct 14, 2011 at 12:52 AM, Studio LFP studio@gmail.com wrote: Try using the context that is passed to the receiver instead of the application

Re: [android-developers] Get Application Context After Force closed

2011-10-13 Thread Manikandan M
i tried all cases: *context.getApplicationContext() , context, this*. but i returns same exception. Thanks in advance. On Fri, Oct 14, 2011 at 1:01 AM, Manikandan M c2dmdevelo...@gmail.comwrote: Hi steven, Thanks for the reply. yes the context which i used is receiver context only but i

Re: [android-developers] Get Application Context After Force closed

2011-10-13 Thread Kostya Vasilyev
I'm not sure that this exception has anything to do with application vs. non-application context, or perhaps it's more complicated than usual. Exception : java.lang.IllegalStateException: Could not find OpenHelperClass because none of its generic parameters extends OrmLiteSqliteOpenHelper: null