How can I access Android private API's which doesn't exposed in TelephonyManager?

Posted by Micha Valach on Stack Overflow See other posts from Stack Overflow or by Micha Valach
Published on 2010-05-06T05:50:31Z Indexed on 2010/05/06 5:58 UTC
Read the original article Hit count: 197

Filed under:

Hi,

I'm newbie in Android.

I intend to write tests related the Phone and Direct SIM write.

What are the alternatives in case the required API's does not exposed in TelephonyManager but exist as private APIs in PhoneBase.java or PhoneFactory.java or CommandInterface.java?

examples: 1. What is the "replacement" for: mPhone = PhoneFactory.getDefaultPhone(); ? 2. What is the alternative in order to access the CommandsInterface, CommandsInterface mCmdIf = ((PhoneBase)mPhone).mCM ?

Thanks In Advance, Micha

© Stack Overflow or respective owner

Related posts about android