How to create new project in Android?

The quickest way to get to know Android Studio is to use it to develop an app. We’ll start with a variation on the “Hello, World” application: a little mobile app that displays a “Welcome to Android” message. Starting a new project Step 1: Start Android Studio and Click on “Start a New Android Studio Project”. This will first check all your settings and tools. If any settings or tools are missing it will show you to correct it. After that it will prompt to create a new project. Good…

Read More

Android Emulators(AVD) Setup -Step by Step

What is Android Emulator or AVD? The Android Emulator or AVD (Android Virtual Device) that helps you to simulates Android devices on your computer so that you can test your application on a variety of devices and Android API levels without needing to have each physical device. The emulator provides almost all of the capabilities of a real Android device.  How to create and manage virtual devices? To setup the AVD, follow the following steps: Step 1: Select Tools > AVD Manager. Click AVD Manager  in the toolbar. Step 2: Click Create Virtual Device,…

Read More

JAVA_HOME variable setup for android studio

If JAVA_HOME is not set, you will receive “Environment variable JAVA_HOME not defined”. Otherwise, the current setting will be shown. To set/change JAVA_HOME in Windows: Launch “Control Panel” “System” “Advanced system settings” Switch to “Advanced” tab “Environment variables” Choose “System Variables” (for all users) To add a new environment variable “JAVA_HOME“: Choose “New” In “Variable Name”, enter “JAVA_HOME”. In “Variable Value”, click “Browse Directory…” and navigate to the JDK installed directory (e.g., “C:\Program Files\Java\jdk-13.0.1“). OK ⇒ OK ⇒ OK. To change the existing “JAVA_HOME” setting: Select “JAVA_HOME” ⇒ “Edit” In “Variable Value”, click “Browse Directory…” and navigate to…

Read More

Installation of Android Studio-Step by Step

Installing Android Studio (IDE) is probably the most challenging part. It takes times – from 30 minutes to n hours to forever – depending on your luck, your programming knowledge, and your PC. You probably need a fairly decent PC (with 8GB RAM) and 10GB of free disk space to run the Android emulator!!! Running on “actual” Android phone/tablet requires much lesser resources. How to install Android Studio in windows? Step 1: Before installing Android SDK, you need to install Java Development Kit (JDK). Read “How to install JDK”. Ensure that your…

Read More

Installation and Setup of JDK

What is JDK or JRE ? JRE (Java Runtime) is needed for running Java programs. JDK (Java Development Kit), which includes JRE plus the development tools (such as compiler and debugger), is need for writing as well as running Java programs. In other words, JRE is a subset of JDK. Since you are supposed to write Java Programs, you should install JDK, which includes JRE. I recommend that you install only the latest JDK. Although you can install multiple versions of JDK/JRE concurrently,but it is messy. Follow the below mentioned steps to install and setup JAVA/JDK. How to install JDK…

Read More

Android Manifest file

What is Manifest file? The manifest defines the structure and metadata of your application and its components. Your app must declare all its components in this file, which must be at the root of the app project directory. Each Android project includes a manifest file, AndroidManifest.xml, stored in the root of the project hierarchy. In Android Studio new project wizard automatically creates a new manifest file when it creates a new project. You’ll return to the manifest as each of the application components is introduced. Before the Android system can…

Read More

Android Application Components

Application 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 component of the application and how they interact. There are following four main components that can be used within an Android application: Components Description Activities They dictate the UI and handle the user interaction to the smartphone screen Services They handle background processing associated with an application. Broadcast Receivers They handle communication between Android OS and applications. Content Providers They handle data and database management…

Read More

Android OS Architecture

Android operating system is a stack of software components which is roughly divided into Six sections and Five main layers as shown below in the architecture diagram. List of Sections in Android Architecture The Linux Kernel Hardware Abstraction Layer (HAL) Android Runtime Native C/C++ Libraries Java API Framework System Apps 1. The Linux Kernel The foundation of the Android platform is the Linux kernel. For example, the Android Runtime (ART) relies on the Linux kernel for underlying functionalities such as threading and low-level memory management. Linux Kernel is heart of the android…

Read More

Introduction to Android

What is Android? Android is an open source and Linux-based Operating System for mobile devices such as smartphones and tablet computers. Android was developed by the Open Handset Alliance, led by Google, and other companies. Android offers a unified approach to application development for mobile devices which means developers need to develop for only Android, and their applications should be able to run on different devices powered by Android. Open Handset Alliance is a group of mobile and technology leaders who share this vision for changing the mobile experience for consumers …” An…

Read More

Types of Cell in Mobile communication

Even though the number of cells in a cluster in a cellular system can help govern the number of users that can be accommodated, by making all the cells smaller it is possible to increase the overall capacity of the cellular system. Accordingly in areas where there are more users, small low power base stations are installed. The different types of cells are given different names according to their size and function: Macro cells:   Macro cells are large cells that are usually used for remote or sparsely populated areas. These…

Read More