Interview answers verified by specialists.

Find interview questions and answers on this website:

See right interview answers on 30 common job interview questions

What are the different modes of operations used in services for Android?

There are two modes of operations that are necessary to run depending on the value returned by the startcommand(). The modes are as follows:
  - START_STICKY: this mode is used for the services that are explicitly started and stopped according to the need and the requirement of the user. 
  - START_NOT_STICKY or START_REDELIEVER_INTENT: this service mode is used for services that are running only when the processing command sent to them. That means these run on the basis of the command that is passed to them by giving the instruction of execution. 
  - Clients uses the Context.bindService() that is used to get the persistent connection for a service. To create a service that is not already running the command onCreate is used. 

Do you know that?

$44 average hourly rates for Writer freelance Next