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. Android sqlite unable open database problem

Hi,

im doing debug with my mobile. My code works in the past, but now is not
working and i dont know why i cant create or open an existing database.

Here is my code:
http://stackoverflow.com/questions/2163100/creating-database-in-android

Could you help me about how to solve this problem?

I read that there is an option from the command line:

emulator -wipe-data but since im not using an emulator to debug the
application (im using my own android mobile), im lost about how to solve the
problem.

Thanks in advance.
Best Regards.
Josema.

-- 

2. CPU performance in my nexus

Hancurrrr suhu Sa kenceng amat...
Gw cuman:

HTC Nexus One
google/passion/passion/mahimahi:2.1/ERD79/22607:user/release-keys
Processor ARMv7 Processor rev 2 (v7l) Linux BogoMIPS 662.40
Memory RAM 217464 Memory SWAP 0
Graphics
Total graphics score;25.660803
Draw opacity bitmap;9.481482;MPixels per sec
Draw transparent bitmap;6.2135925;MPixels per sec
CPU Whetstone
Total CPU score;2146.3196
MWIPS DP;129.70168;MWIPS(DP)
MWIPS SP;168.63406;MWIPS(SP)
MFLOPS DP;23.167576;MFLOPS(DP)
MFLOPS SP;29.536957;MFLOPS(SP)
VAX MIPS DP;110.37509;VAX MIPS(DP)
VAX MIPS SP;134.94264;VAX MIPS(SP)
Memory
Total memory score;272.53592
Copy memory;247.64735;Mb/sec
Filesystem
Total file system score;24.161243
Creating 1000 empty files;10.625;sec
Deleting 1000 empty files;7.801;sec
Write 1M into file;2.5258904;M/sec
Read 1M from file;46.08295;sM/sec;
SD card perfomance
Creating 250 empty files;5.5;sec
Deleting 250 empty files;5.32;sec
Write 1M into file;5.973716;M/sec
Read 1M from file;238.09525;sM/sec;

@jakontil
powered by snapdragontil

On Jan 31, 2010 4:52 PM, "Subanindiyo Ardi" <subanindiyo.a...@gmail.com>



Benar ndak yah nih nexus gw, kayaknya ngaco nih.

-- 
--------------
"Indonesian Android Community [id-android]"

3. changing the background color of an activity

4. Pipe separator "|" in sms

5. Is Possible implement Like Syntax in SQLiteQueryBuilder?

6. Hasil akhir mirink di PIM

7. TextvView Problem