i wanna register my overrided Application class in the manifest file
already asked questionn (didnt help my case) Register Application class in Manifest?
in the above question. the user got his answer . but in my case . android:name="" is filled by android name="io.branch.refferal.branchApp"
if i replace that name with my application class name, my branch api does'nt work.
so, how do i register my application class in manifest file
p.s. i have made application file to use chrisjenx's Calligraphy api, to set my font for the entire application
code snippet:
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme"
android:name="io.branch.referral.BranchApp"
>
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
my application class below :
package absdevelopers.com.brankreferal;
import uk.co.chrisjenx.calligraphy.CalligraphyConfig;
public class Application extends android.app.Application {
@Override
public void onCreate() {
super.onCreate();
CalligraphyConfig.initDefault("fonts/My-font.ttf");
}
}