UrbanPro
true

Learn Android Application Development Training from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

APPLICATION FUNDAMENTALS OF ANDROID

Nitendra Thakur
21/11/2016 0 0

Application components are the essential building blocks of an android application. Each component has its own importance. Some of the components have some interface through which user can access the application and some of them have no User interface but they play an important role while running an application as well as during the development.

There are four different types of application components having distinct purpose among themselves and has a distinct life cycle during they created and destroyed.

 

Here are four components :

1). ACTIVITY
This is the primary classes which provide the graphical user interface to the user and captured the user interaction through that interface. Activity usually implements a single , focused task that user can do like dial a number or opening of browser etc. Activity is the main class user see when they run the application. Activities are designed to provide a graphical user interface or GUI to the user. It enables user to give and receive information to and from an application. Remaining three components has no graphical user interface. Let’s took an example of Whats-app application in which one application shows the recent chats another activity show the contacts available into the Whats App, another one to read the particular chat. Collectively they provide the great user experience.
 

2). SERVICES

Services are the long running process which runs in the background or to perform a task for a different process. A service has no user interface .e.g. A service might play music in the background while the user in the different application.
 

3). BROADCAST RECEIVER

Listens to and responds to the events that happen on the device. That event   is the system-wide broadcast announcements to which our broadcast receiver responds. Many broadcast systems originate from the systems for e.g. When Image was captured , the battery is low etc.
 

4). CONTENT PROVIDER

It manages the shared set of application data. You can store your data in the file system , SQLite database , on the web ,on the cloud and you can easily access that data  via your application. Through the content provider, other application can query your data or modify if contents provider allows it. Content provider manager is available to manage user contact information.

Building an Android application

Android Build process provides projects and module build setting so that our android application compiled and packed to get .apk. Android build process flow :

 

 
Creating an android Application

Creating an android application includes following steps :

 
  • Define the resources

  • Implement application classes

  • Package Application

  • Install and Run Application

1). DEFINE RESOURCES :

Resources are the non-source code entities many different resource types such as layout ,strings , images , menus and animations. Resources allow app to customized for different devices and users.
We can categorize the resources into default and alternative resources. Default resources are those who belongs from device configuration and alternate resources are those which is manually configured apart from the device configuration.
 

2). IMPLEMENT CLASSES :

Implementation of classes usually involves at least one activity. Activity initialization code usually in onCreate. Now lets us see what's the flow of onCreate :

1. Restore the saved state

2. Set content View

3.Initialise the UI elements

4.Link UI element to code actions

 

3). PACKAGE THE APPLICATION :

System packages application components and resource into a .APK file. Developer specifies required application information in a specified file name as AndroidManifest.xml.

Android Manifest file includes the all relevant informati
0 Dislike
Follow 0

Please Enter a comment

Submit

Other Lessons for You

What is the latest version of Android?
Android 7.0 "Nougat" is the seventh major version of the Android operating system. First released as a beta build on March 9, 2016, it was officially released on August 22, 2016, with Nexus devices being...

Benefits of Design Patterns in Application Development
Application developments is a tedious job. Programmers write code and test it again and again to make sure their software works fine. So designing complex software is a hard nut to crack. Skilled programmers...

10 Ways My Life Changed When I Learned To Code
1. I have freedom to make my own schedule. 2. I earn more, but work fewer hours. 3. I can say “no” to job offers. 4. People come to me asking if I can work for them. 5. I never have to...

Starting Career in Android Development
Starting career in Android has become trouble free now. There is a lot of content available online to start learning Android. Just type “Android development” in Google and you will be flooded...

Online Gaming apps for Android
Smart phones are very common these days. Android smart phones are what people are buying a lot. With the updated versions of android too, it is making mobile user friendly and very much extensive in use....
X

Looking for Android Application Development Training Classes?

The best tutors for Android Application Development Training Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn Android Application Development Training with the Best Tutors

The best Tutors for Android Application Development Training Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more