Posts

Android Components and Activities - Types of Android Components

Android Architecture Components , introduced in Android Jetpack, are a collection of libraries that help you design robust, testable, and maintainable apps. These components make it easier to encapsulate code and resources for things like managing data persistence, lifecycle changes, and inter-process communication (IPC). The architecture components help you design your app in a way that is adaptable to different configurations and different devices without adding unnecessary complexity. Types of Android Components 1.  Activity lifecycle in Android 2.  Services in Android 3.  Broadcast Receiver in Android 4.  Content Provider in Android Components Description Activity They dictate the UI and handle the user interaction to the smart phone screen. Services They handle background processing associated with an application. Broadcast Receiver They handle communication between Android OS and applications. Content Provider They handle data and database management issues. ...

Layout in Android - Types of Android Layouts in App Development

A layout defines the structure for a user interface in your app, such as in an activity. All elements in the layout are built using a hierarchy of View and ViewGroup objects. A View usually draws something the user can see and interact with.  To define a layout, create an XML file with a root View element. Then, add one or more View or ViewGroup objects to the hierarchy. Each view is described by two things: its position in the hierarchy and its appearance.  Types of Layouts in Android   Linear Layout in Android  Relative Layout in Android   Table Layout in Android   Absolute Layout in Android  Frame Layout in Android  List View in Android  Grid Layout in Android 1. Linear Layout in Android A Linear Layout is a view group that aligns all children in a single direction, vertically or horizontally.   2. Relative Layout -  Suppose we want to have three buttons in our application that are of the same type, such as 'Text view,' where the...

Android Components - Types of Android Components

Android components are the essential building blocks of an Android application. These components are loosely coupled by the application manifest file AndroidManifest.xml that describes each application component and how they interact. Android Components have four types: 1. Android A ctivities   2. Android Services   3. Content Providers 4 . B roadcast receivers Components Description Activity They dictate the UI and handle the user interaction to the smart phone screen. Services They handle background processing associated with an application. Broadcast Receiver They handle communication between Android OS and applications. Content Provider They handle data and database management issues. Source: LearnVern.Com

Android Architecture Components - Android Activities

Image
Android operating system is a stack of software components that are roughly classified into five divisions and four main layers as explained below in the architecture diagram.   Android Architecture Components are Divided in five different layers.  Application - Home, Contacts application Android Framework - This Framework manager our  basic function of our phone. It consists Activity Manager, Windows Manager, Content Providers, View Systems, Resource Managers, Location Managers.  Libraries - This layer consist C/C++ libraries such as Media, SSL, OpenGL, Graphics  Android Runtime - Android Runtime needed for  execute any Android application. Linux Kernel - In Linux Kernal  basic work of a kernel is to to manage balance between hardware and software. So, when we have an application in device when we run it, it occupy CPU and memory. So all these are the work are performed by Kernels like CPU management, memory management, and device management. In t...

Android SDK Installation - How to Install SDK in Android Studio?

Android SDK Installation - How to Install SDK in Android Studio If you already have system and please follow these steps for Download Android Studio  Open Browser and type Android Developer and you will Android Official site in Search Result and it’s URL would be like this: developer.android.com  then Click on Android Studio option, Currently, click Android Studio Option, and you will get Download Button. Now click on that and it will automatically fetch your system like it is 32bit or 64bit.  Then Android’s Terms& Condition of Android Studio will appear so kindly check it once and mark on checkbox to Download Android Studio.  Once your downloading process is complete and you can proceed further for Android Studio.  Please make sure that you have active internet connection because it will automatically download some additional useful android tools. Here I mention some useful resource for How to Install Android Studio which may be helpful for you. Read More...

Android XML Layout - Create XML layouts for Android

Basic Android XML Layout When we are coding for Android, where the designing part is there, where we design the UI of the application, where we design the layout, at that time we write the designing code in XML format within which we use the AAPT tool. This tool is Android Asset Packaging Tool which allows us to view, create, and update within our application. AAPT Tool compiles resources in binary format. This means that when my application runs, the text is not in xml format, but the converted text of binary XML is displayed. Here we learn about XML in Android XML tutorial . What is XML and Use of XML for Android XML is developed by W3C.  XML was designed to store and organize data.  XML format is readable to both human and computer.  XML is tree structure because xml is fast processing process.  The World Wide Web Consortium (W3C) is the main international standards organization for the World Wide Web. All the web developers are using it so that what standar...

Java for Android - Basic java for Android App Development

  Pre Requisites and Basic Java for Android App Development Android operating system is open-source, which is why we can access it. The other thing is that we can take Android from different places besides the Android market, so that too was an advantage. If we also see from the developer point of view, it is easy to put Androids application in the market, for which we have to do a simple registration, once we register and get the certificate then after that we can put any number of applications in the market, that is also an Android advantage.  In today's date, 80 percent of the mobile devices that are running in the mobile market are Android. So we can say that the highest market share of Android is going on. So due to all these reasons, we choose Android for application development. In App development basic knowledge of Java for Android is required, so if you know Core functions of Java and what we develop by using function and their working process then it will be fine fo...