How can you find out what a basic launch is?

Newb question. How can you find out what a basic launch is? Android training.

+5
source share
5 answers

Assuming this is for your code, check the .xml manifest and find this element:

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

It should be contained in tags <Activity>... </Activity>and that Activityis the one that the user can run from his phone.

+5
source

You must put the correct intent tag in action in the manifest:

    <activity android:name=".SomeActivity"
              android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
+4
source

AndroidManifest.xml;

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

<activity> ( ).

+2

The main activity can be considered one that processes the initial screen of the application being created.

 ?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="clustering.android"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="10" 
              android:targetSdkVersion="11" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

    <application
        android:icon="@drawable/gene_launcher"
        android:label="@string/app_name" >
       <activity
           android:name=".MainActivity"
           android:label="@string/app_name" >
           <intent-filter>
               <action android:name="android.intent.action.MAIN" />
               <category android:name="android.intent.category.LAUNCHER" />
           </intent-filter>
       </activity>
       <activity android:name=".yourSubActivity"  android:label="@string/<ActivityName>"> </activity>
     ...list of other activities...
   </application>

</manifest>
+2
source

You can see AndroidManifest.xml in your file

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

This will help you find startup activity.

+1
source

All Articles