Losing Data on Reboot

by droozen » Fri, 10 Apr 2009 21:35:59 GMT

Sponsored Links
 So, I made a mistake and I still had the debug version of my app (from
Eclipse) on my phone when I tried to install a signed version. The
install failed, but I could no longer access the debug version in
Manage Applications to uninstall it. I was at work and couldn't
reinstall the debug version in order to uninstall, so I did a complete
factory reset of my phone (using MyBackup Pro to backup stuff).

Now I can install my app. However, now I notice upon reboot that my
app loses all of its data from shared preferences. I'm not entirely
sure that it's not a problem of mine somehow, but does anyone know why
it is doing that and how I can fix it? I may have left the
debuggable=true on in the version I'm trying to test. Would that cause
this problem?

Losing Data on Reboot

by droozen » Fri, 10 Apr 2009 22:07:30 GMT

 If it helps at all, I've discovered that this only happens if my
bootup service tries to read certain preferences and install an alarm.
I've used this process to install several other alarms, but for some
reason the latest alarms I've added have been causing me to lose all
my preferences on a reboot.

I'm not doing anything different that I can tell, but maybe there's
some known problem that can caused shared preferences to crash and
disappear like this?


Sponsored Links

Losing Data on Reboot

by ellipsoidmob...@googlemail.com » Sun, 12 Apr 2009 02:25:34 GMT

 Are you certain the problem is related to the changes you have made?
Just wondering if there could be a simpler explanation, like you're
not writing the preferences in or before onPause(), or maybe you're
not always calling commit() on the preferences editor?

Other Threads

1. Adding the custom fonts to listview in Android


I am comletely new to Android Programming.I just wanted to know how to
use a particular font type for an item in List View in Android or in
other words how to customize the font in ListView in Android.It would
be really helpful if you could provide a code snippet to explain the



2. eclipse/sdk combo crash

If I right-click the res folder of a project, I can create a menu
folder.  If I right click that folder and try to create a menu.xml
file, eclipse hangs.  I have to force quit it.  After relaunching
eclipse, menu.xml is there.  I've seen this behavior on two different
computers now.  If I then try to open the empty menu.xml to edit it,
on one computer eclipse hangs again, although on the other it opens
and I can then edit the file.

I'm running eclipse Helios and the very latest Android SDK 3.0.  Both
computers are running Snow Leopard although one is a core 2 duo
(macbook) and the other is an i7 (macbook pro).

Anyone else run into this?


3. Menu Visible always

4. Barcode scanning in android App

5. Android Root user

6. Archos 70

7. Cara ngeRoot Motorola Droid Pro