Same Problem
Hi Erel, i'm having the same issue for about a few weeks now, and can not figure out how to solve it, and it is driving me crazy.
I have created a wrapper for a push notification ads sdk, everything works fine as far as receiving the ads and the icon drop, i have also created a BootReceiver class which extends BroadcastReceiver, and i have added this to my xml file
AddApplicationText(<service android:name="com.senddroid.AdService" android:exported="true">
<intent-filter>
<action android:name="com.senddroid.AdServicecom.dandre.sendroid.ads"/>
</intent-filter>
</service>
<receiver android:name="com.dandre.sendroid.ads.bootreceiver">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED"/>
<category android:name="android.intent.category.HOME"/>
</intent-filter>
</receiver>)
when i reboot my device, i get the error below
LogCat connected to: TA28705IOE
--------- beginning of /dev/log/main
** Service (wallpaperservice) Create **
--------- beginning of /dev/log/system
** Service (wallpaperservice) Start **
java.lang.RuntimeException: Unable to instantiate receiver com.dandre.lake.bootreceiver: java.lang.ClassCastException: com.dandre.lake.bootreceiver
at android.app.ActivityThread.handleReceiver(ActivityThread.java:1826)
at android.app.ActivityThread.access$2400(ActivityThread.java:124)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1018)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:130)
at android.app.ActivityThread.main(ActivityThread.java:3806)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassCastException: com.dandre.lake.bootreceiver
at android.app.ActivityThread.handleReceiver(ActivityThread.java:1817)
i have also created a BootReceiver service in my Basic4Android app, but i still get the same error, can you please help me with this Erel, i'm running out of hair to pull from,
your help will be greatly appreciated as always Erel.
thanks,
Walter