Sivan Wolberg
Sivan Wolberg

Reputation: 458

Android Add Application Class that not work

An issue add Application Class into the my application

Application Class:

 public class QmerceApp extends Application {
    @Override
    public void onTerminate() {
        super.onTerminate();    //To change body of overridden methods use File | Settings | File Templates.
        ControlEventBus.getInstance().GetCommand(EventType.Application).SendEvent(EventType.Application, EventAction.ApplicationShutdown);
    }

    @Override
    public void onCreate() {
        super.onCreate();    //To change body of overridden methods use File | Settings | File Templates.
        ControlEventBus.getInstance().GetCommand(EventType.Application).SendEvent(EventType.Application, EventAction.ApplicationSetup);
    }
}

the manifest file:

 <?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
          package="com.qmerce.client"
          android:versionCode="1"
          android:versionName="1.0">
    <uses-sdk android:minSdkVersion="17"/>
    <application android:label="@string/app_name" android:logo="@drawable/qmerce_logo" android:icon="@drawable/ic_launcher" android:name="com.qmerce.client.QmerceApp">
        <activity android:name=".Activity.MainActivity"
                  android:theme="@style/Theme.Qmerceclient"
                  android:label="@string/app_name">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
    </application>
</manifest>

now my issue i put break point and its getting there have no idea what i doing wrong here...

Upvotes: 0

Views: 95

Answers (1)

Jitesh Upadhyay
Jitesh Upadhyay

Reputation: 5260

hi i think you need to check about you packages , please have a look what package you are using, please be specified with them.

Upvotes: 1

Related Questions