Take a FREE introductory instructor-led Live class at :[ Ссылка ]
---------------------------------------------------------
Switching between Activities :
-------------------------------------------
You can easily switch between activities and it only requires an intent.
Know more about intents : [ Ссылка ]
An Intent is an object that provides runtime binding between separate components (such as two activities). The Intent represents an app's "intent to do something." You can use intents for a wide variety of tasks, but most often they're used to start another activity.
ex -
Intent intent = new Intent(this, SecondActivity.class);
The constructor used here takes two parameters:
**A Context as its first parameter (this is used because the Activity class is a subclass of Context)
**The Class of the app component to which the system should deliver the Intent (in this case, the activity that should be started)
Watch all videos of this series by clicking here : [ Ссылка ]
-----------------------------------------------------------
Please write back to us at support@edureka.in or call us at +91-8880862004 for more information.
[ Ссылка ]
Visit - [ Ссылка ]
Ещё видео!