The launcher activity
When an app is launched from the home screen on an Android device, the Android OS creates an instance of the activity in the application you have declared to be the launcher activity. When developing with the Android SDK, this is specified in the AndroidManifest.xml
file. The following code excerpt from AndroidManifest.xml
shows how to specify an activity as a launcher activity:
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.paket.POIApp" > <application android:allowBackup="true" android:icon="@drawable/ic_launcher" android:label="POIApp" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="POIApp" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> </application> </manifest>
Xamarin.Android...