Re: [android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-08 Thread Mark Murphy
Agreed. When you get an exception, scan down the stack trace and look for the Caused by: stanza, as that is where the real problem lies. On Thu, Jul 8, 2010 at 12:35 AM, Yousuf Faheem yousuf.syed@gmail.com wrote: I guess its because you are either using String for some other data type or

Re: [android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-07 Thread Mark Murphy
On Wed, Jul 7, 2010 at 7:02 PM, Bret Foreman bret.fore...@gmail.com wrote: Here's the full stacktrace from traces.txt: No, I meant from LogCat. Use adb logcat, DDMS, or the DDMS perspective in Eclipse. Below your Error receiving broadcast Intent should be another exception indicating the root

Re: [android-beginners] Re: Exception when using a BroadcastReceiver for battery-change events

2010-07-07 Thread Yousuf Faheem
Hi, I guess its because you are either using String for some other data type or using some other data type instead of String. Possibly in the CommonTempLogic(); Place CommonTempLogic in the try catch block and see. Caused by: java.lang.ClassCastException: java.lang.String this is what I can