Explore Tumblr blogs with no restrictions, modern design and the best experience.
Fun Fact
BuzzFeed published a report claiming that Tumblr was utilized as a distribution channel for Russian agents to influence American voting habits during the 2016 presidential election in Feb 2018.
What is Activity in Android Studio - The Basic Fundamentals
What is Activity in Android Studio - The Basic Fundamentals - Activity is a User Interface (UI) concept that usually represents a single screen of an Android application.
What is Activity in Android Studio - The Basic Fundamentals
This user interface screen can have one or more views as per the requirement, but views are not compulsory. That is, there can also be an Android App that does not have any View in its activity.
We can consider an activity as a part of our Android App that helps the user to perform an action. In simple words, Activity is the medium in the form of User Interface which handles various Actions that are performed due to User interactions.
For example, when a user taps a button that appears on a screen in an Android App, the Task that is performed in the Response of that Tapping Action is specified and implemented in this Activity Part.
Suppose we want the Android App to close when a user clicks a button.
To meet this need, the Button Click Action Response in Close Programming Codes (Program Logics) is written under Activity, which is a Java Class.
Because each activity of the Android App is a Java Class File whose action is performed by the User Interface of the Layout View File linked to this Java Class File by the Program Codes, it is handled by the Linked Activity Class File itself.
Tasks related to data viewing, creating data and editing data are usually completed under an activity.
Read the full article