What is Android? How to build an android app?
Android is a mobile operating system developed by Google, based on the Linux kernel and intended primarily for touchscreen mobile devices such as smartphones and tablets. Android’s user interface is mainly based on direct manipulation using touch screens along with a...
Basic threading concepts in android
THREADS
Threads are the foundation of any multitasking operating system which can be visualized as many mini-processes running within a main process, in-order to achieve parallel execution paths within applications.
The Application Main Thread
When an Android application is...
How to install Android Studio?
What is Android Studio?
Android Studio is basically used for Android Application Development thus providing us the Android platform. Android Studio is the official Integrated Development Environment(IDE) for developing for the Android Platform. Android Studio is freely...
How to make a phone call on clicking a button in android
In some of the apps that we develop we may need to make a call through it. This could easily be done by using implicit Intent with appropriate actions.We can use Android Intent to make phone call by calling built-in Phone Call functionality of the Android.In my code i will be...
Downloading an image from url
If you wish to download an image and display it on your screen in android refer the code below.
The code of the MainActivity is as shown below:
public class MainActivity extends AppCompatActivity {
Button load_img;
ImageView img;
Bitmap bitmap;
ProgressDialog pDialog;...
How to create a grid layout with horizontal scroll?
A GridLayout object places components in a grid of cells. Each component takes all the available space within its cell, and each cell is exactly the same size.
The code below will let you build a grid view with horizontal scroll as shown below
<?xml...
How to create a register activity in Android?
Step 1: Create a blank activity under your java class. Give the name of the activity as RegisterActivity and check the box of fragments while creating the register activity.
Step 2: In your MainActivity declare the register button and define it by using the following...
How to enable developer options in your Android phone
One of the most important step in building an application on your mobile,is to make sure that all the settings for running an application is enabled…This can be done by following some simple steps.They are as follows:
Go to “Settings” in your phone.
Then go...