android

App Development Key Concepts of Android

Android is an open supply mobile platform launched via Google in 2008 and ever-since it have become the favorite for humans and developers around the world. Android is Linux based totally multiprocess and multithreaded OS. Google’s Android OS is not restricted to phones however you could use it to build a DVR, a handheld GPS, an MP3 participant etc.

Key Concepts of Android Development 

although Android platform is an open source and customizable, Android http://www.applockers.com users and developers have become ordinary to the constructs evolved by means of Google for Android devices. using these Android standards is essential for growing an software quickly.

Key principles of Android are:-
Apps and APK files
activities
Fragments
views and ViewGroups
format XML documents
Intents
Widgets
offerings
Sensors

i am supplying you with an overview of the Android key concepts. After having a fundamental know-how of Android’s key principles you may move deeper into the various different topics.

Apps and APK files

An Android app is an Android software. An app is packaged in an APK record i.e. Android software bundle. The APK file carries the compiled Java code and other sources like photographs and texts for the Android software

activities

An Android activity is a GUI issue. you could understand it as a window in a computer application. As mobile smartphone displays are small, an pastime takes up the whole display screen. in case you open more than one sports then they may be stacked on top of every different. You can not set up sports aspect by using side like you could do with computer home windows.

activities are precise, centered moves which a person can take. As it’s miles difficult to scroll, zoom in or click links on a small display screen hence it is encouraged that an app display best one hobby in line with display screen. this could present the maximum relevant information to the user and allows them to release a new screen for added facts or click on the lower back button to view the previous activity. The screen can divulge more than one obligations however it ought to assist the user complete simply one activity at a time.

Fragments

android
android

In Android, a fragment is a fragment of a total person interface. a fragment most effective takes up part of the display screen. Fragments are used within the activities. Fragments also can be used within special sports. Fragments contain perspectives and ViewGroups inside them.

View and ViewGroups

Android GUI elements come into three classes i.e. sports, perspectives and ViewGroups. activities are the home windows/screens. views are the man or woman GUI elements, like a TextView which displays a textual content, a Button that customers can click on on and so forth. ViewGroups are packing containers for views. A ViewGroup actually businesses a set of perspectives together. views and ViewGroups may be nested inner an pastime or interior even a fragment which is nested interior an activity.

format XML files

activities, fragments and ViewGroups can use XML files to outline their layout and contents. The format XML files inform which GUI additives an interest or fragment includes and additionally the styling of the GUI components i.e. the scale, margins, padding etc.

intent

if your app calls for performing a feature past its core skills like opening a picture, playing a video or searching up a contact then you definately have to discover whether or not a device which could carry out that function already exists within the OS or in a 3rd-birthday party app. If sure then you could get the gain of that functionality using intents.

For e.g. if your app accesses person contacts then you can use rationale gadgets to release the device’s existing Contacts utility. This eliminates the programming duplication and additionally accelerate the person’s interplay with the device because the consumer will not need to study once more a way to add a contact to your app.

Widgets

Android Widgets are really GUI components which may be displayed out of doors of an interest. For e.g. A weather widget which indicates trendy climate is proven on many Android domestic monitors. Widgets had been packaged and implemented as a part of an Android utility. additionally on occasion views in Android are also referred to as widgets. For e.g. Many GUI additives are positioned in a Java bundle known as android.widget. GUI additives aren’t same as a widget that could remain on the home display screen of an Android device. hence you must understand the difference between GUI additives which may be used inside ViewGroups, Fragments and additives which can be used internal ViewGroups, Fragments and sports and also inner Widgets and Widgets that may stay on the home display screen of the Android device.

offerings

In Android, services are background manner which may be finished on an Android device even though no utility is seen. services do now not require a user interface. For e.g. A carrier can check a faraway server for updates or backup statistics each hour.

Sensors

Android devices have many inbuilt sensors which you may get admission to from your Android applications. For e.g the in-built GPS in smartphones is a sensor. therefore you can get get right of entry to to the GPS from inner your Android applications.