Stefan wrote:
> thanks for your answer. i try option 1 today, but i couldnt call the
> funtion in my MainActivity class:
> 
> My steps:
> 
> in MainActivity:
> xmlHandler = new XMLHandler ( MainActivity.this ); // <-- is that the
> Activity, i think so ??
> 
> in XMLHandler (normal java file):
> 
> Activity main;
> public XMLHandler (Activity act)
> {
>   this.main = act;
> }
> 
> I now want to call the specific function, but i can't say:
> act.callMethodOfMainActivity (aValue);

Of course. Your XMLHandler is holding an Activity, not a MainActivity.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to