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
http://grepcode.com/file/repo1.maven.org/maven2/com.j256.ormlite/ormlite-android/4.21/com/j256/ormlite/android/apptools/OpenHelperManager.java#232
You should ask on an mailing list / group / support site that deals with
ormlite-android.
This looks like it:
https://groups.google.com/forum/#!forum/ormlite-dev
<https://groups.google.com/forum/#%21forum/ormlite-dev>
-- Kostya
13.10.2011 23:56, 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 <[email protected]
<mailto:[email protected]>> wrote:
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 <[email protected]
<mailto:[email protected]>> wrote:
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 UTC-5, Manikandan M
wrote:
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]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:android-developers%[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
--
Kostya Vasilyev
--
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