Sponsored Links
Hey guys, I am trying to start an intent from a preference activity, AND GET RESULTS once the new intent is done. As such, I can update the summary of the preference. Normall we do startActivityForResult() to wait for results. But how can I do this here? My code is as follow: PreferenceScreen intentPref = getPreferenceManager().createPreferenceScreen(this); Intent intent = new Intent(this, PolicyEditor.class); intent.putExtra(PhoneCardDbAdapter.COL_ROWID, (long)rule.mRuleID); intentPref.setIntent(intent); <--- I want to make sure once the activity related to intent is done, we can update the summary title = "Rule " + (i+1); summary = rule.ruleSummary(); intentPref.setTitle(title); intentPref.setSummary(summary); mlaunchPrefCat.addPreference(intentPref); Any idea? Thanks, xin --~--~---------~--~----~------------~-------~--~----~