OS : android 4.0.4

Log :

08-19 10:25:54.153   529   612 E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM 
PROCESS: android.hardware.SensorManager$SensorThread
08-19 10:25:54.153   529   612 E AndroidRuntime: java.lang.ClassCastException: 
java.lang.String cannot be cast to 
android.hardware.SensorManager$ListenerDelegate
08-19 10:25:54.153   529   612 E AndroidRuntime:        at 
android.hardware.SensorManager$SensorThread$SensorThreadRunnable.run(SensorManager.java:521)
08-19 10:25:54.153   529   612 E AndroidRuntime:        at 
java.lang.Thread.run(Thread.java:856)
08-19 10:25:54.163   529   612 F libc    : Fatal signal 11 (SIGSEGV) at 
0x005300a2 (code=1)
08-19 10:25:54.563   203   203 I DEBUG   : *** *** *** *** *** *** *** *** *** 
*** *** *** *** *** *** ***
08-19 10:25:54.563   203   203 I DEBUG   : Build fingerprint: '####'
08-19 10:25:54.563   203   203 I DEBUG   : pid: 529, tid: 612  >>> 
system_server <<<
08-19 10:25:54.563   203   203 I DEBUG   : signal 11 (SIGSEGV), code 1 
(SEGV_MAPERR), fault addr 005300a2
08-19 10:25:54.563   203   203 I DEBUG   :  r0 0154b040  r1 0000000b  r2 
0053002e  r3 00000001
08-19 10:25:54.563   203   203 I DEBUG   :  r4 57722460  r5 5ced5de8  r6 
01620ff0  r7 000010f8
08-19 10:25:54.563   203   203 I DEBUG   :  r8 4084e2c0  r9 41b4e120  10 
5ced5dd4  fp 0000001b
08-19 10:25:54.563   203   203 I DEBUG   :  ip 000000f8  sp 5dd99d70  lr 
00000000  pc 408520dc  cpsr 20000010
08-19 10:25:54.563   203   203 I DEBUG   :  d0  0074007300790073  d1  
0073005f006d0065
08-19 10:25:54.563   203   203 I DEBUG   :  d2  0065007600720065  d3  
00720063005f0072
08-19 10:25:54.563   203   203 I DEBUG   :  d4  3ff0000000000000  d5  
41e50ff041e59dd0
08-19 10:25:54.563   203   203 I DEBUG   :  d6  4080000041e50da8  d7  
3eaaaaab3f800000
08-19 10:25:54.563   203   203 I DEBUG   :  d8  0000000000000000  d9  
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  d10 0000000000000000  d11 
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  d12 0000000000000000  d13 
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  d14 0000000000000000  d15 
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  d16 006f007200720045  d17 
0075006400200072
08-19 10:25:54.563   203   203 I DEBUG   :  d18 56e87a6856e87a30  d19 
56e87ad856e87aa0
08-19 10:25:54.563   203   203 I DEBUG   :  d20 56e87b4856e87b10  d21 
56e87bb856e87b80
08-19 10:25:54.563   203   203 I DEBUG   :  d22 56e87c2856e87bf0  d23 
56e87c9856e87c60
08-19 10:25:54.563   203   203 I DEBUG   :  d24 0000000000000000  d25 
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  d26 0000000000000000  d27 
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  d28 0100010001000100  d29 
0100010001000100
08-19 10:25:54.563   203   203 I DEBUG   :  d30 0000000000000000  d31 
0000000000000000
08-19 10:25:54.563   203   203 I DEBUG   :  scr 80000012



java.lang.ClassCastException: java.lang.String cannot be cast to 
android.hardware.SensorManager$ListenerDelegate
at 
android.hardware.SensorManager$SensorThread$SensorThreadRunnable.run(SensorManager.java:521)
at java.lang.Thread.run(Thread.java:856)

------------------------------------------------------------------------------------------
Code:SensorManager.java

    static final ArrayList<ListenerDelegate> sListeners =
        new ArrayList<ListenerDelegate>();


                            for (int i=0 ; i<size ; i++) {
--->>>>>>>>>>>>> here           ListenerDelegate listener = sListeners.get(i);
                                if (listener.hasSensor(sensorObject)) {
                                    // this is asynchronous (okay to call
                                    // with sListeners lock held).
                                    listener.onSensorChangedLocked(sensorObject,
                                            values, timestamp, accuracy);
                                }
                            }


We do not modify SensorManager.java ..
So how's it possible to 'sListeners.get(i)' returns String type?

There is no way to "ArrayList<ListenerDelegate> " has String type.. But it 
returns String...
WT...




-- 
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

Reply via email to