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

    Joined:
    Oct 27, 2010
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Ratings:
    +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