The Android application (Samsung Galaxy Tab, 2.2) does not * sometimes * write to the database

We have an Android application running on Android 2.2 on the Samsung Galaxy Tab, which writes data to SQLite DB.

However, on some tables, we find the following intermittent problem.

  • Data is written to the database. (No SQLiteExceptions are thrown, we are committing a transaction).
  • But the database does not actually contain data.

Removing and reinstalling the application or clearing the application data does not matter.

When we then factory reset the handset and repeat the same procedure, it works fine. This problem is not limited to this part; all of us in my development team have experienced this intermittently.

However, I could not reproduce the problem on any Android phones (I tried HTC Desire, HTC Desire HD and Samsung Galaxy S, all running Android 2.2) or on the emulator (Galaxy Tab works).

I have a suspicion that this may have something to do with the error that appeared in Samsung when they cracked Android 2.2. I was wondering if anyone else ran into this problem, and if so, did you know that you know some less drastic measure than factory resetting the tablet?

Thanks,

Siddhu

+6
source share
1 answer

There are reports that Samsung behaves badly with the settings (without saving them). See this question on Google . Settings are also stored in the database. So my guess is related to your problem, if not quite the same.

Google for

Samsung settings not saved

for more views.

We encountered similar problems with our Samsung app. It was not possible to find an official expression from Samsung, therefore, in the end, it was documented to users that this could happen on Samsung devices.

+1
source

Source: https://habr.com/ru/post/887291/


All Articles