2017-12-24 14 views

答えて

0

Androidのインテントは、名前が示すとおり、別のコンポーネントに対して操作を実行するための「意図」を表現するために使用されます。

Intent intent = new Intent(context, MyActivityB);//pass the information(contexts of the current activity and the activity I want to open). 
startActivity(intent);//Use startActivity method to start the activity defined in the object intent. 

他のアクションは次のとおり:にアプリをopenning意図の一つの一般的な使用法は、以下を参照、オブジェクトの開始およびopenning活動の情報(コンテキスト)を含む場合、startActivity(intentObject)と一緒にそれを使用することですメールを送信する、ソーシャルメディアを開くなど

関連する問題