Stefan wrote: > i have following problem: > I have my "MainActivity". In this Activity, i start a thread > (SaxParser in another "normal" java file). Now I want to call a method > from the MainActivity out of the normal java file?
Option #1: Pass the Activity in the constructor of your object from your "normal java file" Option #2: Have the Activity call a setter on your object from your "normal java file" (e.g., setActivity(this);) -- 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---