Why are my SharedPreferences suddenly deleted, after I updated my game in the Market?

by Lance Nanek » Wed, 03 Feb 2010 17:38:36 GMT


Sponsored Links
 Did you change/add a sharedUserId in your manifest?




--



Why are my SharedPreferences suddenly deleted, after I updated my game in the Market?

by Martin » Wed, 03 Feb 2010 18:14:18 GMT


 No, I even don't know how to use sharedUserId's.

Here is my Manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android=" http://schemas.android.com/apk/res/android" ;
      package="digle.de.LeonardFrog"
      android:versionCode="4"
      android:versionName="1.3 (beta)">
    <application android:icon="@drawable/icon" android:label="@string/
app_name">
        <activity android:name=".LeonardFrog"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category
android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name=".AGame"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait">
        </activity>
        <activity android:name=".AOptions"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait">
        </activity>
        <activity android:name=".AHighscore"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait">
        </activity>
        <activity android:name=".AInfo"
                  android:label="@string/app_name"
                  android:screenOrientation="portrait">
        </activity>
        <meta-data android:name="ADMOB_PUBLISHER_ID"
android:value="***************" />
</application>
    <uses-sdk android:minSdkVersion="2" />

<!-- AdMob SDK permissions -->
        <uses-permission android:name="android.permission.INTERNET" />
        <uses-permission
android:name="android.permission.ACCESS_COARSE_LOCATION" />


</manifest>



Greetings! Martin






--


Sponsored Links


Why are my SharedPreferences suddenly deleted, after I updated my game in the Market?

by JP » Wed, 03 Feb 2010 22:50:49 GMT


 There used to be an old old bug where shared preferences would
sporadically just disappear. Your post inspired me to do some research
and find out if that ever got fixed... En route I found this for you:



Other Threads

1. Motorola Droid Virtual Device

I'm trying to work through device independent UI layouts and such. I'd
like to setup a virtual device that is sized appropriately for the
Motorola Droid handset to be released on verizon's network. In the
Android SDK and AVD Manager, I created a new virtual device with the
WVGA854 skin, targetint Android 2.0 SDK. When I launch the AVD, it
prompts me to "Scale the display to real size". When I choose to do
that, the AVD looks way too small, when I don't do that, it's looks
way too big. Am I doing something wrong? Has anyone setup an AVD to do
testing on this device?

--~--~---------~--~----~------------~-------~--~----~

2. BG threads with 1.6; is the AlarmManager starving?

I have a question about the background thread handling change that
went into SDK 1.6.  I read here that BG threads get placed in a
scheduling class that can't use more than 5-10% of the CPU in order to
keep the foreground responsive.  Do system services get into that
scheduling class?

My app uses repeating alarms.  It was great with 1.5, very reliable.
Since the upgrade to 1.6, the phone seems to be dropping some of my
repeating broadcasts, especially if I am doing something fun in the
foreground like with WIFI when the Alarm is supposed to fire.  I do
not have any of the task killer programs that have been a hot topic
lately.  To be clear, the dropped alarm broadcast behavior is
intermittent.  I am not 100% sure if I really am doing something when
it has failed.  If the timer is a one shot, it seems to work better
but there is no real empirical evidence here. My phone is usually in
my pocket when I fire one of the one shot alarms.  If my theory about
system services in the background scheduling class is correct, then I
probably cannot find a workaround or defensively code a solution.
Will it be the same in 2.0?

Have others seen issues with alarms and with the setRepeating method?
I am looking for suggestions to troubleshoot this problem.  How can I
determine if the problem is the broadcast, if it is the repeating
alarm creation, or if there is some other issue like low memory coming
in to
play.  Any ideas?

Thanks and regards,
Beth
--~--~---------~--~----~------------~-------~--~----~

3. How do some services(like "com.android.inputmethod.latin") start when the emulator boots?

4. How do some services(like "com.android.inputmethod.latin") start when the emulator boots?

5. Client server architecture problem (one receiving thread and many activities)

6. Google wave invitations...?

7. MultiAutoCompleteTextView with simpler completion and without comma