How To Get Application Context After Force closed
<p>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.</p>

<p>OrmLiteSqliteOpenHelper lDatabaseHelper =
OpenHelperManager.getHelper(context.getApplicationContext());</p>

<p>This is fine in normal cases.</p>

<p>Suppose if i force stop my application manually from settings-</p>

<blockquote>
  <p>application->manageapplication. if any c2dm message came after i am
  unable to create OrmLiteSqliteOpenHelper object. it seems application
  context getting null.</p>
</blockquote>

<p>Exception :
java.lang.IllegalStateException: Could not find OpenHelperClass
because none of its generic parameters extends
OrmLiteSqliteOpenHelper: null</p>

<p>How do i get the application context after force stopping the
application.</p>

<p>i tried all cases: <strong>context.getApplicationContext() , context, this</strong>.</p>

<p>Please help me .</p>
