What's new
DroidForums.net | Android Forum & News

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Android's activity

What an "activity" particularly means in an Android Application and what purpose basically it is used for?

"An activity is a single, focused thing that the user can do."

It's any "thing" with a visual interface. If one app has 2 screens (let's say a list of tasks and a form for settings), each one will be an activity.

This is distinct from things such as broadcast receivers and services in that these run in the background without a visual interface.

More technically, it's a class in Android that handles the lifecycle of an application and its visual components. When you write apps you extend this class and change and fill in things to behave as you want it to.

Activity | Android Developers
 
Back
Top