Differentiate activities from services?



Differentiate activities from services?..

Answer / Sangeeta Yadav

Activities are user-interface components that the user interacts with, while services run in the background and perform long-running operations without direct user interaction. Activities have a visual interface for displaying information and receiving user input, whereas services typically do not have a user interface. Services can be started by an activity or other service and are often used to execute tasks such as playing music, synchronizing data with remote servers, or handling system-level broadcasts.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Android OS Interview Questions

Is there a case wherein other qualifiers in multiple resources take precedence over locale?

1 Answers  


Which of the method is used to return a view from a layout file given the id of the view?

1 Answers  


What is gradle.properties?

1 Answers  


In android, what is contained within the xml files in layout folder?

1 Answers  


Please explain how to prevent the data from reloading and resetting when the screen is rotated?

1 Answers  


Explain AndroidManifest.xmlfile in detail.

1 Answers  


Assume that we have an android object named stored in reader variable, and inside it has a child object named?

1 Answers  


How you can use built-in Messaging within your application?

1 Answers  


Sqlite database save data in which storage?

1 Answers  


What is tween animation?

1 Answers  


Tell us difference between service, intent service, asynctask & threads?

1 Answers  


Why android is the most popular mobile operating system in the world?

1 Answers  


Categories