Passing string from class to main activity

view full story

http://stackoverflow.com – I'm trying to pass something from one class to my MainActivity, but it doesn't seem to work, I don't understand why. I have my GPS Tracker on another class (not the MainActivity) in order to reuse it. When the location changes, I want my other class to call a method from within the MainActivity to update my UI. I summarized my code like that : My MAIN ACTIVITY : public class MainActivity extends Activity implements OnClickListener { TextView tv; EditText et; Button btun; int arg0; int stuff; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceS (HowTos)