Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Use Multiple "Application class" in android?

See below My Manifest.xml

I Already used ApplicationLoader.

<application
        android:name=".ui.ApplicationLoader"
        android:allowBackup="true"
        android:icon="@drawable/app_icon"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

<application
        android:name="org.abtollc.sdk.AbtoApplication"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name">

Now i want to use both application class in single project ? How its possible

org.abtollc.sdk.AbtoApplication is third-party libs.

like image 303
Android Devs Avatar asked Oct 20 '25 04:10

Android Devs


1 Answers

It's not impossible, your ApplicationLoader must extend AbtoApplication in this case.

like image 79
Egor Avatar answered Oct 22 '25 19:10

Egor