Android call method in Service from Activity
问题 I want to call a method in a Service object from an Activity object, however I have found it is not possible to call the method from the MainActivity normally. I hope my code explains what I mean better: Service: public class Timer extends Service { public Vibrator v; public MainActivity ma; public CountDownTimer mycounter; public static final String MY_SERVICE = "de.example.timer.MY_SERVICE"; public IBinder onBind(Intent arg0) { return null; } public void onCreate() { super.onCreate(); ma =