August 2015
Intermediate to advanced
296 pages
6h 40m
English
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> ...
Read now
Unlock full access