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