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

    hemodroid86 New Member

    Oct 27, 2010
    Likes Received:
    Trophy Points:
    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:
    Class aClass = Class.forName("com.android.phone.PhoneApp");
    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