> anyone else getting this?

I have recently received several crash reports caused by Google
Analytics (version 1.1), such as

java.lang.IllegalStateException: no transaction pending at
android.database.sqlite.SQLiteDatabase.endTransaction(SQLiteDatabase.java:
480) at
com.google.android.apps.analytics.PersistentEventStore.putEvent(Unknown
Source) at
com.google.android.apps.analytics.GoogleAnalyticsTracker.createEvent(Unknown
Source) at
com.google.android.apps.analytics.GoogleAnalyticsTracker.trackEvent(Unknown
Source) at vOICe.vOICe.The_vOICe.a(Unknown Source) at
vOICe.vOICe.m.onAutoFocus(Unknown Source) at android.hardware.Camera
$EventHandler.handleMessage(Camera.java:345) at
android.os.Handler.dispatchMessage(Handler.java:99) at
android.os.Looper.loop(Looper.java:123) at
android.app.ActivityThread.main(ActivityThread.java:4363) at
java.lang.reflect.Method.invokeNative(Native Method) at
java.lang.reflect.Method.invoke(Method.java:521) at
com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:862) at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) at
dalvik.system.NativeStart.main(Native Method)

I'm not sure yet what to do about them. Maybe put a try-catch block
around all uses of Google Analytics?

Regards


On Dec 29, 8:39 pm, Mark Wyszomierski <[email protected]> wrote:
> Hi,
>
> I'm using google analytics in my app. I am getting a good number of
> force closes from users, finally got a stacktrace:
>
> Caused by: android.database.sqlite.SQLiteException: file is encrypted
> or is not a database
>   at android.database.sqlite.SQLiteDatabase.native_setLocale(Native
> Method)
>   at
> android.database.sqlite.SQLiteDatabase.setLocale(SQLiteDatabase.java:
> 1864)
>   at android.database.sqlite.SQLiteDatabase.<init>(SQLiteDatabase.java:
> 1814)
>   at
> android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:
> 808)
>   at
> android.database.sqlite.SQLiteOpenHelper.getReadableDatabase(SQLiteOpenHelper.java:
> 168)
>   at
> com.google.android.apps.analytics.PersistentEventStore.getNumStoredEvents(PersistentEventStore.java:
> 160)
>   at
> com.google.android.apps.analytics.PersistentEventStore.startNewVisit(PersistentEventStore.java:
> 177)
>   at
> com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
> 108)
>   at
> com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
> 99)
>   at
> com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
> 83)
>   at
> com.google.android.apps.analytics.GoogleAnalyticsTracker.start(GoogleAnalyticsTracker.java:
> 94)
>   at com.me.myapp.MyActivity.onCreate(MyActivity.java:30)
>   at
> android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:
> 1047)
>   at
> android.app.ActivityThread.performLaunchActivity(ActivityThread.java:
> 2459)
>
> anyone else getting this? The call that causes it:
>
>   private GoogleAnalyticsTracker tracker;
>
>   tracker = GoogleAnalyticsTracker.getInstance();
>   tracker.start("mykey", context);  <- causes the exception.
>
> This is working fine for most users. I'm going to try catching the
> exception, hopefully that will work.
>
> Thanks

-- 
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

Reply via email to