CopyPastor

Detecting plagiarism made easy.

Score: 0.8146971063367252; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2018-06-13
by Moin Khan

Original Post

Original - Posted on 2010-01-19
by Erich Douglass



            
Present in both answers; Present only in the new answer; Present only in the old answer;

The easiest way to do this would be to pass the session id to the signout activity in the Intent you're using to start the activity:
Intent intent = new Intent(getBaseContext(), SignoutActivity.class); intent.putExtra("EXTRA_SESSION_ID", sessionId); startActivity(intent);
Access that intent on next activity
String s = getIntent().getStringExtra("EXTRA_SESSION_ID");
The easiest way to do this would be to pass the session id to the signout activity in the `Intent` you're using to start the activity:
Intent intent = new Intent(getBaseContext(), SignoutActivity.class); intent.putExtra("EXTRA_SESSION_ID", sessionId); startActivity(intent);
Access that intent on next activity
String s = getIntent().getStringExtra("EXTRA_SESSION_ID");
The [docs][1] for Intents has more information (look at the section titled "Extras").

[1]: http://developer.android.com/guide/topics/intents/intents-filters.html

        
Present in both answers; Present only in the new answer; Present only in the old answer;