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