help with the android studio manifest please

0

please how do I have the two MyApplication and AppController classes in the manifest eye are not activitys are just classes that control in my app

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

<application
    android:name=".MyApplication"
    android:allowBackup="true"
    android:icon="@drawable/ingrepto"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">


   < android:name=".AppController"
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:supportsRtl="true"
    android:theme="@style/AppTheme"/>


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

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name=".PresentacionLayout" />
</application>

    
asked by chelo 17.11.2017 в 02:26
source

1 answer

0

You were confusing. The Activity is not added as if it were the application itself, but as you already have a MainActivity and a PresentacionLayout :

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

<application
    android:allowBackup="true"
    android:icon="@drawable/ingrepto"
    android:label="@string/app_name"
    android:theme="@style/AppTheme">

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

    <activity android:name=".PresentacionLayout" />
    <activity android:name=".MyApplication" />
    <activity android:name=".AppController"/>

</application>

Here you can see how the Manifest file is structured .

    
answered by 17.11.2017 в 02:43