@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.notifying_controller); Button button = (Button) findViewById(R.id.notifyStart); button.setOnClickListener(mStartListener); button = (Button) findViewById(R.id.notifyStop); button.setOnClickListener(mStopListener); }
public void onClick(View v) { stopService(new Intent(NotifyingController.this, NotifyingService.class)); } };
public void onClick(View v) { startService(new Intent(NotifyingController.this, NotifyingService.class)); } };
public void onClick(View v) { startService(new Intent(NotifyingController.this, NotifyingService.class)); } };
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.notifying_controller); Button button = (Button) findViewById(R.id.notifyStart); button.setOnClickListener(mStartListener); button = (Button) findViewById(R.id.notifyStop); button.setOnClickListener(mStopListener); }
public void onClick(View v) { stopService(new Intent(NotifyingController.this, NotifyingService.class)); } };