Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Application (Samsung Galaxy Tab, 2.2) does not *sometimes* write to the DB

We have an Android application running on Android 2.2 on the Samsung Galaxy Tab that writes data into the SQLite DB.

However, we find the following intermittent problem arising on some tablets.

  1. The data is written into the DB. (No SQLiteExceptions being thrown; we are committing the transaction).
  2. But the DB does not actually contain the data.

Uninstalling and reinstalling the application or clearing the application's data does not appear to make any difference at all.

When we then factory reset the handset and repeat the same procedure, it works just fine. This problem is not restricted to a given piece; all of us in my dev team have come across this intermittently.

However, I have not been able to reproduce the problem on any Android handsets (I tried on the HTC Desire, the HTC Desire HD, and the Samsung Galaxy S, all running Android 2.2), or on the emulator (running the Galaxy tab add-on).

I have a suspicion this may have something to do with a bug introduced by Samsung when they hacked Android 2.2. I was wondering if anybody else had encountered this problem, and if so, do you guys know of any less drastic measure than factory resetting the tablet?

Thanks,

Siddhu

like image 907
Siddhu Avatar asked May 04 '11 15:05

Siddhu


People also ask

Why are my apps not working on my Samsung tablet?

Clearing the app cache, checking if the app is compatible with your device, rebooting your device, optimizing your device, uninstalling and reinstalling the app, and even checking for additional updates are all things that may help.

What type of audio file does Samsung use?

Your Galaxy device natively supports the following file formats: Music: mp3, m4a, mp4, 3gp, 3ga, ogg, oga, aac, and flac.

Why is my Samsung not letting me open apps?

reboot your phone Usually, the first step to take when dealing with Android apps not working is to restart your phone. Just press and hold the Power button for about 10 seconds to force your phone to restart. If that didn't do the trick, then you can: Long-press the Power button to bring up the device's power menu.

Why cant I open a file on my Samsung tablet?

If a file won't open, a few things could be wrong: You don't have permission to view the file. You're signed in to a Google Account that doesn't have access. The correct app isn't installed on your phone.


1 Answers

There are reports out there about Samsung misbehaving with Settings (not saving them). See this Google issue. The settings are also saved in the database. So my guess your issue is related, if not exactly the same.

Google for

samsung settings not saved

for more hits.

We faced similar issues with our app in Samsung. Couldn't find an official statement from Samsung, so in the end documented to the users that this could happen in Samsung devices.

like image 198
Christian Garbin Avatar answered Sep 27 '22 18:09

Christian Garbin