![]() ![]() Usually, explicit intents are used to start activities that belong to your own application while implicit intents are meant for activities that belong to other apps installed on the user's device. ![]() In case of implicit intents, you only specify the action you wish to perform and let the Android operating system determine the exact activity that should be started. An intent is said to be explicit when you initialize it using the class literal of the activity you want to start. Intents can either be explicit or implicit. It is able to start when you touch its icon only because it is able to respond to an intent created by the launcher app on your device.Īlong with details about the activity, an intent can contain additional data, aptly called extra data, to send arguments or return results from one activity to another. For example, consider the Hello World app you created earlier in this series. They are such an integral part of the Android platform that even the simplest of apps need them. ![]() Intents are instances of the Intent class. To start an Android activity, you must have an intent for it. The same is true in the world of Android apps. In the real world, before you start performing an action, you usually intend to perform it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |