将应用程序类添加到我的应用程序中的问题
应用类:
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);
}
}
清单文件:
<?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>
现在我的问题我放了断点并且它到达那里不知道我在这里做错了什么......