Android Experts,
I have a simple Android Service, which should start on device
bootup. However, I cannot debug this using Eclipse on Windows.
The error I get from Logcat is
10-01 21:06:30.788: DEBUG/AndroidRuntime(487): >>>>>>>>>>>>>>
AndroidRuntime START <<<<<<<<<<<<<<
10-01 21:06:30.788: DEBUG/AndroidRuntime(487): CheckJNI is ON
10-01 21:06:31.008: DEBUG/AndroidRuntime(487): --- registering native
functions ---
10-01 21:06:32.008: DEBUG/AndroidRuntime(487): Shutting down VM
10-01 21:06:32.008: DEBUG/dalvikvm(487): Debugger has detached; object
registry had 1 entries
10-01 21:06:32.038: INFO/AndroidRuntime(487): NOTE: attach of thread
'Binder Thread #3' failed
My manifest looks like
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.preciseinc.DroidLocator"
android:versionCode="1"
android:versionName="1.0">
<uses-permission
android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission
android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission
android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/
app_name" android:debuggable="true">
<service android:name=".DroidService">
<intent-filter>
<action
android:name="com.preciseinc.DroidLocator.DroidService" />
</intent-filter>
</service>
<receiver android:name=".ServiceAutoStarter">
<intent-filter>
<action
android:name="android.intent.action.BOOT_COMPLETED"/>
</intent-filter>
</receiver>
</application>
</manifest>
I have a breakpoint in my ServiceAutoStarter code (below), which is
never hit.
public class ServiceAutoStarter extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
Intent serviceIntent = new Intent();
serviceIntent.setComponent(new
ComponentName("com.preciseinc.DroidLocator",
"com.preciseinc.DroidLocator.DroidService"));
context.startService(serviceIntent);
}
}
Appreciate any and all Help.
Regards,
Raj.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en