PhoneFactory.getDefaultPhone from apps other than PhoneApp

by Naveen K » Thu, 25 Jun 2009 00:58:26 GMT


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

--~--~---------~--~----~------------~-------~--~----~



PhoneFactory.getDefaultPhone from apps other than PhoneApp

by Thomas Baumgartner » Tue, 07 Jul 2009 00:04:15 GMT


 Hi,

did you find a solution how PhoneFactory.getDefaultPhone() can be
invoked from a new app?

Thomas






--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


PhoneFactory.getDefaultPhone from apps other than PhoneApp

by Naveen K » Wed, 15 Jul 2009 07:11:15 GMT


 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.




--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. How can I get HorizontalScrollView's width???

Hi~!! all

Now I'm making a App that using HorizontalScrollView.

I wanna get width of horizontal scroll view. but i can't..

the return value is always 0(zero)...


in my code...


HorizontalScrollView hscv = (HorizontalScrollView)findViewById
(R.id.Hscv)

hscv.getwidth () <-- always Zero!!! (three image view in the hscv!!)

somebody help me ~!!!


--~--~---------~--~----~------------~-------~--~----~

2. How can I get HorizontalScrollView's width???

The width is not defined until after the first layout pass.






-- 
Romain Guy
Android framework engineer
romain...@android.com

Note: please don't send private questions to me, as I don't have time
to provide private support.  All such questions should be posted on
public forums, where I and others can see and answer them

--~--~---------~--~----~------------~-------~--~----~

3. onRecieve starting activity problem

4. DataCall (CSD) on Android

5. Alternative SSL encryption algorithm

6. how many branches are there

7. Unable to inatall Android x86 on eeepc/acer aspire one