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. Contact list attatchment

How can i include any no of contacts from my contatc list in any app. I am a 
newbie please help

Sent from my Nokia phone

-- 

2. Bringing an Activity to the from when notification is tapped

Hi!

My app is having an Activity, and a local Service. The Service shows
notifications for time to time, and I like to open the Activity when the
notification is tapped. Now the problem is, I may get multiple activies
stacked if I tap the notifications many times in a row. Here's how I show
the notification:

final NotificationManager notificationManager = (NotificationManager)
getSystemService(NOTIFICATION_SERVICE);

Notification notification = new Notification(R.drawable.icon, "Hello",
System
                .currentTimeMillis());

notification.flags |= Notification.FLAG_ONGOING_EVENT;
notification.flags |= Notification.FLAG_NO_CLEAR;

Intent intent = new Intent(this, MyActivity.class);
intent.setFlags(Intent.FLAG_ACTIVITY_REORDER_TO_FRONT
        | Intent.FLAG_ACTIVITY_RESET_TASK_IF_NEEDED);
PendingIntent i = PendingIntent.getActivity(this, 0, intent, 0);

notification.setLatestEventInfo(this, "Hello", "Hello", i);

notificationManager.notify(NOTIFICATION_ID, notification);

Any suggestions how to just bring the Activity to the front if it already
exists?

Br,
Antti

-- 

3. INCEPTION: MIND CRIM

4. Problem retrieving any "List" from Twitter using JTwitter.

5. how centralize view in absolutelayout

6. monetizing apps with a subscription model or in-app purchases

7. Change widget dimensions on orientation change