SiteMap

2014年4月8日火曜日

Android - Change Default Activity

Use the AndroidManifest.xml file, you can actually even have more than one launcher activity specified in your application manifest. To make an activity seen on the launcher you add these attributes to your activity in the manifest


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


Ref.
http://stackoverflow.com/questions/3631982/change-applications-starting-activity-android
http://stackoverflow.com/questions/9704898/how-to-set-my-activity-as-main-activity-in-android 

0 件のコメント: