I have a PreferenceActivity that has a Preference on it. When the preference launches an activity using startActivity, the PreferenceActivity is stopped and removed by the OS.
I would like the user to return to the original PreferenceActivity instead of having it be finished and removed by the operating system.
The OS is removing the activity but I cannot tell why. HOw can I tell where/which code is calling finish on my activity?
@Override
protected void onClick() {
// TODO Auto-generated method stub
super.onClick();
log("click");
Intent sintent = new Intent(context, MusicPrefActivity.class);
context.startActivity(sintent);
}
<activity
android:name=".ui.prefs.RokuPrefActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>
<activity
android:name=".ui.prefs.MusicPrefActivity"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
</intent-filter>
</activity>