Hope you will understand my question with my basic english...
In my application, I allow the user to have a button that launch the application of his choice. I get n
You should use myIntent.toURI()
to store the Intent
, and use Intent.getIntent(String uri)
to restore the Intent
.
public void saveIntent(Intent intent) {
mSharedPrefs.edit().putString(SOME_KEY, intent.toURI()).commit();
}
public Intent restoreIntent() {
String uri = mSharedPrefs.getString(SOME_KEY, *mSomeDefaultUri*);
return Intent.getIntent(uri);
}