Friday, February 3, 2012

[android-developers] Re: Unable to open database file?

Maybe its crashing because its initially trying to store a value that
is null.....Im just guessing because I have no idea what your code
does on the native side.

On Feb 3, 3:51 pm, Zsolt Vasvari <zvasv...@gmail.com> wrote:
> But if the user tries the same operation again, it works.
>
> So if it's a permissions problem, it's temporary.  The error message
> offers no clue as the real error happens in native code and the JNI
> java code just gives a generic message.
>
> On Feb 3, 4:06 pm, JimAndresakis<jimandresa...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Are you trying to pull data out of the users phone that your app
> > stored in the sql db? If so maybe those particular devices that give
> > that error dont allow access to that file possibly.
>
> > On Feb 2, 5:08 pm, Zsolt Vasvari <zvasv...@gmail.com> wrote:
>
> > > Hi, I am using ACRA and get an average of one report of this kind a day:
>
> > > android.database.sqlite.SQLiteException: unable to open database file
> > > at android.database.sqlite.SQLiteDatabase.dbopen(Native Method)
> > > at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:1956)
> > > at
> > > android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:902 )
>
> > > This is a one time error, if the user tries again, it works.  It seems to
> > > come from all kinds of users on all kinds of devices on different SDK
> > > levels.
>
> > > I open my database once and I store the connection in a static object.
>
> > > I suspect a bug in my code somehow, but I am at a loss.  Anybody with any
> > > ideas, or seen this error happen?
>
> > > Thanks!

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate