I'm bit stuck on this one, it's not too complicated but it's got me beaten!
What I'm trying to do is resume the user's session, by getting the name of the last activity and then passing it to an intent.
Where I'm stuck, is in converting the retrieved String into a classname, so the resumeIntent can use it.
public void Resume (View view){
SharedPreferences sharedPref =
PreferenceManager.getDefaultSharedPreferences(MainActivity.this);
String resumeName = sharedPref.getString("ActivityName", null);
//probably need to do something here//
Intent resumeIntent = new Intent (this, resumeName);
startActivity(resumeIntent);}
new Intent(this, Class.forName(resumeName))??