• +91 9723535972
  • info@interviewmaterial.com

Android Interview Questions and Answers

Question - How to start/stop a service in Android?

Answer -

You can Start android background service as follows:

Intent intent = new Intent(Activity.this, MyBackgroundService.class);
startService(intent);
You can Stop android background service as follows:
Intent intent = new Intent(Activity.this, MyBackgroundService.class);
stopService(intent);

Comment(S)

Show all Coment

Leave a Comment




NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners