Posts

Showing posts with the label learnvern

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...

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...