[android-developers] Re: PhoneFactory.getDefaultPhone from apps other than PhoneApp
PhoneFactory methods are only for PhoneApp. For any other apps to access services provided by Phone App or RIL, they need to post intents to TelephonyManager. Any functionality not exposed by TelephonyManager through intents are private to the Phone App. On Jul 4, 4:54 am, Thomas Baumgartner wrote: > Hi, > > did you find a solution how PhoneFactory.getDefaultPhone() can be > invoked from a new app? > > Thomas > > On 24 Jun., 04:18,NaveenK wrote: > > > Hi, > > > I am trying to call PhoneFactory.getDefaultPhone from a new > > application so that I can access its invokeOemRilRaw* functions. But > > it gives me a "java.lang.RuntimeException: > > PhoneFactory.getDefaultPhone must be called from Looper thread" error. > > > Is this possible ? Or is this function dedicated for the PhoneApp > > only ? > > > Thank you, > >Naveen > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] EditTextPreference: Cannot edit text
Hi, I am writing an app which extends PreferenceActivity. One of the elements of the PreferenceScreen is a EditTextPreference. I have overridden OnPreferenceChange and OnPreferenceTreeClick methods in my class. When I select my EditTextPreference Item, the EditText box pops up. I can do "OK" and "Cancel". No problem. But if I try to edit the text in the text box, it gives me the following dump and crashes my app. W/KeyCharacterMap( 214): No keyboard for id 0 W/KeyCharacterMap( 214): Can't open keycharmap file E/KeyCharacterMap( 214): Can't find any keycharmaps (also tried / system/usr/keychars/surf_keypad.kcm.bin) I/DEBUG ( 27): signal 11 (SIGSEGV), fault addr 0004 I/DEBUG ( 27): r0 r1 003e r2 r3 003e I/DEBUG ( 27): r4 r5 0004 r6 ad337c05 r7 4104bce4 I/DEBUG ( 27): r8 bee62534 r9 4104bcd8 10 4104bcc8 fp I/DEBUG ( 27): ip ad366340 sp bee62510 lr ac41d1b9 pc ac41d106 cpsr 4030 I/DEBUG ( 27): #00 pc 0001d106 /system/lib/libui.so I/DEBUG ( 27): #01 pc 0001d1b4 /system/lib/libui.so I/DEBUG ( 27): #02 pc 00037c0e /system/lib/ libandroid_runtime.so I/DEBUG ( 27): #03 pc e3f4 /system/lib/libdvm.so I/DEBUG ( 27): stack: I/DEBUG ( 27): bee624d0 I/DEBUG ( 27): bee624d4 bee62558 [stack] I/DEBUG ( 27): bee624d8 0003 I/DEBUG ( 27): bee624dc 000f4240 [heap] I/DEBUG ( 27): bee624e0 I/DEBUG ( 27): bee624e4 1ac2b354 I/DEBUG ( 27): bee624e8 001e I/DEBUG ( 27): bee624ec 4104be30 I/DEBUG ( 27): bee624f0 I/DEBUG ( 27): bee624f4 41fe576c /data/dalvik-cache/ sys...@framework@framework@classes.dex I/DEBUG ( 27): bee624f8 0003 I/DEBUG ( 27): bee624fc 41fe576c /data/dalvik-cache/ sys...@framework@framework@classes.dex I/DEBUG ( 27): bee62500 0003 I/DEBUG ( 27): bee62504 ad0460ff /system/lib/libdvm.so I/DEBUG ( 27): bee62508 df002777 I/DEBUG ( 27): bee6250c e3a070ad I/DEBUG ( 27): #00 bee62510 I/DEBUG ( 27): bee62514 0004 I/DEBUG ( 27): bee62518 ad337c05 /system/lib/ libandroid_runtime.so I/DEBUG ( 27): bee6251c ac41d1b9 /system/lib/libui.so I/DEBUG ( 27): #01 bee62520 bee62558 [stack] I/DEBUG ( 27): bee62524 ad337c13 /system/lib/ libandroid_runtime.so W/WindowManager( 54): No focus window, dropping: KeyEvent{action=1 code=62 repeat=0 meta=0 scancode=57 mFlags=8} Any help is appreciated Thanks in advance, Naveen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---
[android-developers] PhoneFactory.getDefaultPhone from apps other than PhoneApp
Hi, I am trying to call PhoneFactory.getDefaultPhone from a new application so that I can access its invokeOemRilRaw* functions. But it gives me a "java.lang.RuntimeException: PhoneFactory.getDefaultPhone must be called from Looper thread" error. Is this possible ? Or is this function dedicated for the PhoneApp only ? Thank you, Naveen --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~--~~~~--~~--~--~---