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 understand from the log.

Thanks & Regards,
Yousuf Syed




On Wed, Jul 7, 2010 at 8:51 PM, Bret Foreman <bret.fore...@gmail.com> wrote:

> Here's the last hundred lines of logcat:
>
> D/qemud   (   34): fdhandler_accept_event: accepting on fd 10
> D/qemud   (   34): created client 0x22c58 listening on fd 15
> D/qemud   (   34): client_fd_receive: attempting registration for
> service 'senso
> rs'
> D/qemud   (   34): client_fd_receive:    -> received channel id 22
> D/qemud   (   34): client_registration: registration succeeded for
> client 22
> D/qemud   (   34): fdhandler_event: disconnect on fd 15
> D/SensorManager( 1712): found sensor: Goldfish 3-axis Accelerometer,
> handle=0
> E/JavaBinder( 1712): !!! FAILED BINDER TRANSACTION !!!
> E/SensorManager( 1712): mDataChannel == NULL, exiting
> D/AndroidRuntime( 1712): Shutting down VM
> W/dalvikvm( 1712): threadid=3: thread exiting with uncaught exception
> (group=0x4
> 001b188)
> E/AndroidRuntime( 1712): Uncaught handler: thread main exiting due to
> uncaught e
> xception
> E/AndroidRuntime( 1712): java.lang.RuntimeException: Error receiving
> broadcast I
> ntent { act=android.intent.action.BATTERY_CHANGED flg=0x40000000 (has
> extras) }
> in com.shipmate.sensorservic...@43b81418
> E/AndroidRuntime( 1712):        at android.app.ActivityThread
> $PackageInfo$Receiv
> erDispatcher$Args.run(ActivityThread.java:765)
> E/AndroidRuntime( 1712):        at
> android.os.Handler.handleCallback(Handler.jav
> a:587)
> E/AndroidRuntime( 1712):        at
> android.os.Handler.dispatchMessage(Handler.ja
> va:92)
> E/AndroidRuntime( 1712):        at android.os.Looper.loop(Looper.java:
> 123)
> E/AndroidRuntime( 1712):        at
> android.app.ActivityThread.main(ActivityThrea
> d.java:4363)
> E/AndroidRuntime( 1712):        at
> java.lang.reflect.Method.invokeNative(Native
> Method)
> E/AndroidRuntime( 1712):        at
> java.lang.reflect.Method.invoke(Method.java:5
> 21)
> E/AndroidRuntime( 1712):        at com.android.internal.os.ZygoteInit
> $MethodAndA
> rgsCaller.run(ZygoteInit.java:860)
> E/AndroidRuntime( 1712):        at
> com.android.internal.os.ZygoteInit.main(Zygot
> eInit.java:618)
> E/AndroidRuntime( 1712):        at
> dalvik.system.NativeStart.main(Native Method)
>
> E/AndroidRuntime( 1712): Caused by: java.lang.ClassCastException:
> java.lang.Stri
> ng
> E/AndroidRuntime( 1712):        at android.app.ApplicationContext
> $SharedPreferen
> cesImpl.getFloat(ApplicationContext.java:2591)
> E/AndroidRuntime( 1712):        at
> com.shipmate.SensorService.commonTempLogic(Se
> nsorService.java:145)
> E/AndroidRuntime( 1712):        at com.shipmate.SensorService.access
> $11(SensorSe
> rvice.java:141)
> E/AndroidRuntime( 1712):        at com.shipmate.SensorService
> $3.onReceive(Sensor
> Service.java:172)
> E/AndroidRuntime( 1712):        at android.app.ActivityThread
> $PackageInfo$Receiv
> erDispatcher$Args.run(ActivityThread.java:754)
> E/AndroidRuntime( 1712):        ... 9 more
> I/Process (   58): Sending signal. PID: 1712 SIG: 3
> I/dalvikvm( 1712): threadid=7: reacting to signal 3
> I/dalvikvm( 1712): Wrote stack trace to '/data/anr/traces.txt'
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Beginners" group.
>
> NEW! Try asking and tagging your question on Stack Overflow at
> http://stackoverflow.com/questions/tagged/android
>
> To unsubscribe from this group, send email to
> android-beginners+unsubscr...@googlegroups.com<android-beginners%2bunsubscr...@googlegroups.com>
> For more options, visit this group at
> http://groups.google.com/group/android-beginners?hl=en
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
android-beginners+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to