Android Intents
Open an URL
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com"));
startActivity(browserIntent);
Pass information thru activities
Intent intent = new Intent(ListActivity.this, ShowActivity.class);
intent.putExtra(EXTRA_USER_ID, userId);
startActivity(intent);
// and then
int userId = getIntent().getExtras().getInt(EXTRA_USER_ID);
Written by Jéгôme Gaпgпeux
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Intent
Authors

alberovalley
7.633K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#