Hi all,
I am calling a method of another .apk file dynamically at runtime
in my application. I can execute it successfully if method does not
contain any variable which is defined outside of that method.
But if I am using the variables which are defined outside that
method ( in the same activity or same .apk) then my application throws
"java.lang.reflect.InvocationTargetException" at runtime.
for e.g. if method defines as ,
public void abc(){
String s ="hello";
Log.w("hiii",s);
} executes fine
but public void abc(){
ImageView splash = (ImageView) findViewById(R.id.splash);
} throws exception java.lang.reflect.InvocationTargetException
caused due to NullPointerException.
Please Help..
Regardz,
Asif
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---