Download presentation
Presentation is loading. Please wait.
1
Activity & Intent
2
Create an new Activity Create a class extends from Activity Create a layout for the activity setContentView for the activity Configure the activity in the AndroidManifest.xml file
3
startActivity(intent)
Multiple Activities Activity01 Activity02 startActivity(intent)
4
Intent …… Intent intent = new Intent(); intent.setClass(Activity01.this, Activity02.class); startActivity(intent);
5
Get information from Intent
In the Activity01.class intent.putExtra(“one”,firstValue); In the Activity02.class intent.getStringExtra(“one”);
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.