Designating a Primary Entry Point Activity for Your Application Using an Intent Filter

An Activity class can be designated as the primary entry point by configuring an intent filter using the Android manifest tag <intent-filter> in the application's AndroidManifest.xml file with the MAIN action type and the LAUNCHER category.

Registering Activities and Other Application Components 93

The following tag of XML configures the Activity class called MultimediaMenuActivity as the primary launching point of the application:

<activity android:name=".MultimediaMenuActivity" android:label="@string/app_name"> <intent-filter>

<action android:name="android.intent.action. MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity>

Easy Software Profits

Easy Software Profits

Here's How Anyone Can Start, Build and Run their Own Successful Software Empire Without Knowing the First Thing About Programming, Scripting Or Any 'Coder' Stuff. There is no doubt about it software sells. Software has a high percieved value and it solves problems for people.  A claim that can't always be made for PDF books, Video products and the like.

Get My Free Ebook


Responses

Post a comment