Azhar has Published 723 Articles

How to change color of Button in Android when Clicked?

Azhar

Azhar

Updated on 01-Aug-2019 07:15:44

4K+ Views

This example demonstrates about How do I change the color of Button in Android when clicked.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to detect airplane mode is on or off in Android?

Azhar

Azhar

Updated on 01-Aug-2019 07:11:19

828 Views

This example demonstrates about How to detect airplane mode is on or off in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to download image from url in Android?

Azhar

Azhar

Updated on 01-Aug-2019 06:59:40

2K+ Views

This example demonstrates how do I download image from url in android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.           ... Read More

How to add a TextView to a LinearLayout dynamically in Android?

Azhar

Azhar

Updated on 31-Jul-2019 11:41:25

2K+ Views

This example demonstrates about How to add a TextView to a LinearLayout dynamically in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. Step 3 ... Read More

How can I set an ImageView's width and height programmatically in Android?

Azhar

Azhar

Updated on 31-Jul-2019 11:36:38

3K+ Views

This example demonstrates about How can I set an ImageView's width and height programmatically in AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. Step ... Read More

How to set an Android App's background image repeated?

Azhar

Azhar

Updated on 31-Jul-2019 11:32:54

1K+ Views

This example demonstrates about How to set an Android App's background image repeatedStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/drawable/app_background.xml. Step 2 − Add ... Read More

How can we get the current language selected in the Android device?

Azhar

Azhar

Updated on 31-Jul-2019 11:28:06

80 Views

This example demonstrates about How can we get the current language selected in the Android deviceStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.

How do I center text horizontally and vertically in a TextView of Android?

Azhar

Azhar

Updated on 31-Jul-2019 11:23:53

2K+ Views

This example demonstrates about How do I center text horizontally and vertically in a TextView of AndroidStep 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml. ... Read More

How to send HTML email using Android App?

Azhar

Azhar

Updated on 31-Jul-2019 11:17:57

1K+ Views

This example demonstrates about How to send HTML email using Android App.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.     Step 3 ... Read More

How to create paginating text in Android?

Azhar

Azhar

Updated on 31-Jul-2019 11:13:08

196 Views

This example demonstrates about How to create paginating text in Android.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Step 2 − Add the following code to res/layout/activity_main.xml.           ... Read More

Advertisements