Android Core Concepts

However, before we jump into getting tools set up and beginning in on actual programming, it is important that we “get on the same page” with respect to several high-level Android concepts.
This Android training in Chandigarh article gives you an overview of Android core concepts.

Topics of Android core concepts

Having a basic understanding of Android’s core concepts will help you dive into various different topics.

Android Core Concepts

Apps and APK Files

An Android application is an Android application. An application is package in an APK file (Android application package). The APK file contains the compiled Java code and different resources like texts and pictures for the Android application.

Activities

An Android activity is a GUI component. It relates generally to a window in a desktop application. Since mobile phone screens are little, an activity typically takes up the entire screen. If you open various exercises they are stacked over one another. You can’t organize activity side by side, similar to you can do with desktop windows.

These two screen shots show an Android application with a list of sites. If you click on any of the sites in the list, the website will open in another activity which takes up the entire screen. If you click the “back” button on your Android devices, you will be taken back to the  first activity with the list of websites.

Fragments

In Android a fragment is a part of an absolute UI. A fragment normally just takes up some part of the screen. Fragment are utilized inside activities. Fragments can be reused inside various activity.

Fragments typically contains View Groups inside them. Fragment is a essential part of Android core concepts

Views and ViewGroups

Android GUI elements fall into three classes: Activities, Views and ViewGroups. Activities are the screens/windows. View are the individual GUI elements, similar to a TextView showing a content, a Button that users can click on etc. View Groups are containers for Views. A ViewGroup group a collection of Views together.

views and View Groups can be settled inside an activity or inside a fragment (which is again settled inside an activity).

Layout XML Files

Activities, fragments and  some ViewGroups can utilize XML file to characterize their layout and content. The format XML files determine what GUI parts an activity or fragment contains, as well as styling of the GUI component.

Intents

Android intents are little objects that an action can go to the Android operating system, to tell the operating system that some other activity is required. For example, a photo application may send a intent to the operating system when the users has shared a photograph. The intent describes the “sharing activity”. Different applications that know how to perform the “sharing activity” would then be able to be opened, and the sharing can be performed via another application

intents can also be used to open a new activity (screen) with activity already visible, Inside the same app. The fundamental components of Android core concepts are intents play a objective role.

Widgets

Android widgets are GUI segments which can be shown outside of an action. For example, a a weather widget showing today’s weather is shown on numerous Android home screens. widgets are actualized and package as a feature of an Android application.

Sometimes Views in Android are additionally referred to as “widgets”. For example, a large number of the GUI components (View subclasses) are situated in a Java package called android.widget . Be that as it may, GUI component are not equivalent to a widgets which can live on the home screen of an Android devices. In this way, be careful when you read about Android to make a qualification between GUI segments which can be utilized inside View Groups, Fragments , Activities , and Widgets which can live on the home screen of the Android devices.

Services

Android services are foundation processes that can be executed on an Android devices, even if no application is visible. Services needn’t bother with a UI. A service could for example check a remote server for updates, or backup data every hour etc.

Sensors

Android devices commonly have a lot of sensors build in which you can access from your Android applications. For example, the built-in GPS in many smart phones is a sensor. Subsequently, you can get access to the GPS from inside your Android applications.

I hope you can understand the basic component of Android core concepts through these article.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

Create your website with WordPress.com
Get started
%d bloggers like this: