MyActivity started by another Activity (different process) with extra string value in intent.
If it reboots itself through MyActivity::restart() like following, extra string value will be received again in MyActivity::onCreate(). That is what I do NOT want.
Is it a wrong way to reboot ?
class MyActivity extends Activity
{
@Override
protected void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
String value = getIntent().getStringExtra("Key");
//Log shows value
}
public void restart()
{
onDestroy();
System.exit(0);
}
}