1
我是新的android.I已經啓動了一個服務在啓動完成的設備在我的項目,但我不知道我如何附加debugger it.ie我想調試我的代碼的一些錯誤,所以我應該如何繼續是什麼?請幫我out.Thanks提前我如何在android中附加啓動接收器的調試器?
我是新的android.I已經啓動了一個服務在啓動完成的設備在我的項目,但我不知道我如何附加debugger it.ie我想調試我的代碼的一些錯誤,所以我應該如何繼續是什麼?請幫我out.Thanks提前我如何在android中附加啓動接收器的調試器?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.broadcast.receiver.example"
android:versionCode="1"
android:versionName="1.0">
<application android:icon="@drawable/icon" android:label="@string/app_name" android:debuggable="true">
<activity android:name=".BR_Example"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!-- Declaring broadcast receiver for wifi status changing event -->
<receiver android:name=".MyReceiver " android:enabled="true" android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
</application>
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
</manifest>
public MyReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Intent myIntent = new Intent(context, YourService.class);
context.startService(myIntent);
}
我希望它會幫助你的人............
這是我已經做了我只想知道如何sh我應該調試該代碼 – AndroidFresher