-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
How to Build Android Apps with Kotlin - Second Edition
By :
An Intent in Android is a communication mechanism between components. Within your own app sometimes you will want another Activity to start when some action happens in the current Activity. Specifying exactly which Activity will start is called an explicit Intent. On other occasions, you will want to get access to a system component, such as the camera. As you can’t access these components directly, you will have to send an Intent, which the system resolves to open the camera. These are called implicit Intents. An Intent filter has to be set up to register to respond to these events. Go to the AndroidManifest.xml file from the previous exercise, and you will see an example of two Intent filters set within the <intent-filter> XML element of the MainActivity:
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category
android:name="android.intent.category...