AndroidでIntent

暗黙的Intent

Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.google.com/"));
startActivity(intent);

setDataAndTypeでMIMETypeとデータを同時に渡せる

明示的Intent

Intent intent = new Intent(this, SubActivity.class);
startActivity(intent);

putExtraで値を渡せる

スポンサーリンク

シェアする

フォローする

スポンサーリンク