Hello to everyone. I'm trying to use internal APIs to obtain some low level network informations (Ec/Io, RSSI and RSCP for GSM phone), I was able to import these APIs and, in particular, I would like to use com.android.internal.telephony.Phone and com.android.internal.telephony.PhoneFactory. But when I try to use PhoneFactory like this:
Phone mPhone; Phone localPhone = PhoneFactory.getDefaultPhone(); this.mPhone = localPhone; I get the following exception: java.lang.RuntimeException: PhoneFactory.getDefaultPhone Must Be Called from Looper thread as described in the source code ( http://hi-android.info/src/com/android/internal/telephony/PhoneFactory.java.html#155) of Android PhoneFactory.java: public static getDefaultPhone Phone () { if (sLooper! Looper.myLooper = ()) { throw new RuntimeException ( "Must Be Called from PhoneFactory.getDefaultPhone Looper thread"); } if (! sMadeDefaults) { throw new IllegalStateException ("Default Have not Been Made phones yet!"); } sProxyPhone return; } Someone has already tried to use the class Phone with success? -- 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

