sorry i changed the variable names to make it more readable they are actually both the same intent toggleIntent declared above. Could it be because the intent would essentially be redeclared each time the button is pressed with the line " Intent toggleIntent = new Intent(MyActivity.this, MyService.class);" ?
-- 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