Android is an open source mobile platform released by means of Google in 2008 and ever-since it have become the fave for human beings and developers round the sector. Android is Linux primarily based multiprocess and multithreaded OS. Google’s Android OS is not constrained to phones but you can use it to build a DVR, a hand-held GPS, an MP3 participant and many others.
Although Android platform is an open source and customizable, Android customers and builders have become recurring to the constructs advanced by way of Google for Android devices. The use of those Android standards is critical for developing an application quickly.
Key Concepts of Android are:-
Apps and APK Files
Views and ViewGroups
Layout XML Files
I am supplying you with a top level view happymod apk of the Android key standards. After having a basic know-how of Android’s key standards you can move deeper into the diverse distinctive topics.
Apps and APK Files
An Android app is an Android Application. An app is packaged in an APK record i.E. Android application package deal. The APK document includes the compiled Java code and other assets like pics and texts for the Android utility
An Android hobby is a GUI thing. You can recognize it as a window in a computer software. As cell smartphone displays are small, an pastime takes up the entire screen. If you open more than one sports then they’re stacked on top of each different. You cannot set up sports aspect with the aid of side like you could do with computer windows.
Activities are particular, targeted moves which a consumer can take. As it’s miles difficult to scroll, zoom in or click links on a small screen therefore it is recommended that an app display only one activity according to screen. This will gift the maximum relevant information to the user and permits them to launch a brand new display screen for extra information or click the again button to view the previous hobby. The display screen can expose multiple obligations however it ought to assist the consumer entire just one interest at a time.
In Android, a fraction is a fragment of a total user interface. A fragment most effective takes up part of the display screen. Fragments are used in the activities. Fragments can also be used inside unique sports. Fragments incorporate Views and ViewGroups inside them.
View and ViewGroups
Android GUI elements come into 3 classes i.E. Activities, Views and ViewGroups. Activities are the windows/displays. Views are the individual GUI factors, like a TextView which presentations a textual content, a Button that customers can click on etc. ViewGroups are packing containers for Views. A ViewGroup certainly businesses a collection of Views together. Views and ViewGroups may be nested interior an pastime or internal even a fraction which is nested inner an activity.
Layout XML Files
Activities, fragments and ViewGroups can use XML documents to define their format and contents. The layout XML files tell which GUI components an interest or fragment consists of and also the styling of the GUI additives i.E. The length, margins, padding and so on.
If your app requires acting a feature beyond its core abilties like establishing a picture, playing a video or looking up a touch then you definitely should find out whether or not a device that may perform that characteristic already exists within the OS or in a 3rd-birthday celebration app. If yes then you can get the benefit of that functionality using intents.
For e.G. If your app accesses user contacts then you could use reason gadgets to launch the device’s present Contacts utility. This eliminates the programming duplication and additionally speed up the consumer’s interplay with the device as the user will not need to examine once more how to upload a contact on your app.
Android Widgets are surely GUI components which may be displayed outside of an interest. For e.G. A weather widget which indicates trendy weather is shown on many Android home displays. Widgets were packaged and applied as a part of an Android utility. Also every now and then Views in Android also are referred to as widgets. For e.G. Many GUI components are positioned in a Java package called android.Widget. GUI components are not equal as a widget which could stay on the house screen of an Android tool. Hence you have to recognize the difference between GUI additives which can be used inside ViewGroups, Fragments and additives which can be used inside ViewGroups, Fragments and Activities and also inside Widgets and Widgets that could remain on the house display of the Android tool.