Hello, Could someone please explain to me why the public getNeighboringCellInfo() method in TelephonyManager.java causes my application to crash (see error log below)?
04-29 23:46:05.754: WARN/dalvikvm(5854): VFY: unable to resolve interface method 23808: Lcom/android/internal/telephony/ ITelephony;.getNeighboringCellInfo ()Ljava/util/List; 04-29 23:46:05.754: WARN/dalvikvm(5854): VFY: rejecting opcode 0x72 at 0x0004 04-29 23:46:05.754: WARN/dalvikvm(5854): VFY: rejected Lcom/android/ locationtest/TelephonyManager;.getNeighboringCellInfo ()Ljava/util/ List; 04-29 23:46:05.754: WARN/dalvikvm(5854): Verifier rejected class Lcom/ android/locationtest/TelephonyManager; 04-29 23:46:05.774: WARN/dalvikvm(5854): threadid=3: thread exiting with uncaught exception (group=0x40013e28) 04-29 23:46:05.774: ERROR/AndroidRuntime(5854): Uncaught handler: thread main exiting due to uncaught exception 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): java.lang.VerifyError: com.android.locationtest.TelephonyManager 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at com.android.locationtest.LocationTest.onCreate(LocationTest.java:172) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java: 1122) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java: 2103) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java: 2156) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.app.ActivityThread.access$1800(ActivityThread.java:112) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.os.Handler.dispatchMessage(Handler.java:88) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.os.Looper.loop(Looper.java:123) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at android.app.ActivityThread.main(ActivityThread.java:3742) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at java.lang.reflect.Method.invokeNative(Native Method) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at java.lang.reflect.Method.invoke(Method.java:515) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 04-29 23:46:06.074: ERROR/AndroidRuntime(5854): at dalvik.system.NativeStart.main(Native Method) Trying to obtain neighboring cell information in any number of ways (including via CellState, for example) has the same result. In addition, I found at least one case, in RIL.java, where the code for retrieving neighboring cell information is commented out: public void getNeighboringCids(Message response) { /* TODO: Remove this hack when backward compatibility issue is fixed. * RIL_REQUEST_GET_NEIGHBORING_CELL_IDS currently returns REQUEST_NOT_SUPPORTED */ AsyncResult.forMessage(response).exception = new CommandException (CommandException.Error.REQUEST_NOT_SUPPORTED); response.sendToTarget(); response = null; /* RILRequest rr = RILRequest.obtain( RILConstants.RIL_REQUEST_GET_NEIGHBORING_CELL_IDS, response); if (RILJ_LOGD) riljLog(rr.serialString() + "> " + requestToString(rr.mRequest)); send(rr); */ } I would appreciate it if someone could tell me if there is a known problem with getting neighboring cell information or if I made a mistake (it would help to know how to correct it), or both. Thanks. Alex Donnini --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "android-framework" group. To post to this group, send email to android-framework@googlegroups.com To unsubscribe from this group, send email to android-framework+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-framework?hl=en -~----------~----~----~----~------~----~------~--~---