Android's activity

markroyson

New Member
Joined
Jul 29, 2010
Messages
2
Reaction score
0
What an "activity" particularly means in an Android Application and what purpose basically it is used for?
 

taeratrin

Member
Joined
Mar 17, 2010
Messages
32
Reaction score
0
An activity is basically Google's version of forms. Each 'screen' in an app is an activity.

For more information, see here
 
Joined
Jun 25, 2010
Messages
129
Reaction score
0
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
 
Top