CopyPastor

Detecting plagiarism made easy.

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

Possible Plagiarism

Plagiarized on 2019-11-30
by Damodhar

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 id to the activity in the Intent you're using to start the activity:
Intent intent = new Intent(getBaseContext(), SignoutActivity.class); intent.putExtra("ID", id); startActivity(intent);
Access that intent on next activity:
String sessionId = getIntent().getStringExtra("ID");
about more details you can go throught [this][1] link

[1]: https://developer.android.com/guide/components/intents-filters
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 sessionId = 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;