1. You want that $100.00 in your pocket or an Amazon Fire TV don't you? Well here's the deal. With our new updated look we are in desperate need of an updated logo. The 'old' one has certainly served us well, but it's time. Find all the details here: bit.ly/1q0k6Wa
  2. DroidForums.net is currently undergoing a major software upgrade. If you are experiencing any problems logging in please: Contact Us

Possible to use reflection to access the PhoneApp class?

Discussion in 'Android Hacks and Help' started by hemodroid86, Dec 16, 2010.

  1. hemodroid86
    Offline

    hemodroid86 New Member

    Joined:
    Oct 27, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    I've been able to use reflection successfully a few times while developing apps for my rooted Droid X(2.2). Now I'm trying to access PhoneApp via reflection, but I keep getting NoClassDefFoundError when I invoke either of the following:
    Code:
    Class aClass = Class.forName("com.android.phone.PhoneApp");
    and
    Code:
    ClassLoader classLoader = MyClass.class.getClassLoader();        
    Class aClass = classLoader.loadClass("com.android.phone.PhoneApp");
    If I decompile BlurPhone.apk I can see com.android.phone.PhoneApp, so what am I missing?
Search tags for this page
android phone reflection sample
,

android reflection phoneapp