Azhar has Published 721 Articles

How to launch activity only once when Android app is opened for the first time?

Azhar

Azhar

Updated on 31-Jul-2019 10:43:59

710 Views

This example demonstrates about How to launch activity only once when Android app is opened for the first time.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 ... Read More

How to store drawable resources ID in the form of R.drawable.* inside an array using an XML values file?

Azhar

Azhar

Updated on 31-Jul-2019 10:36:07

867 Views

This example demonstrates about How to store drawable resources ID in the form of R.drawable.* inside an array using an XML values fileStep 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 − ... Read More

How to take screenshot in Android Programatically?

Azhar

Azhar

Updated on 31-Jul-2019 10:30:39

525 Views

This example demonstrates how do I take a screenshot in Android programmatically.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 disable orientation change in Android?

Azhar

Azhar

Updated on 31-Jul-2019 10:24:50

835 Views

This example demonstrates how do I disable orientation change 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.     Step 3 − ... Read More

How to set Wallpaper Image programmatically in Android?

Azhar

Azhar

Updated on 31-Jul-2019 10:19:54

2K+ Views

This example demonstrates how do I set Android Wallpaper image 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 projectStep 2 − Add the following code to res/layout/activity_main.xml.     Step 3 − ... Read More

How to handle the click event in ListView in android?

Azhar

Azhar

Updated on 31-Jul-2019 10:08:52

5K+ Views

This example demonstrates how do I handle the click event in ListView 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 change the color of the Check box in Android?

Azhar

Azhar

Updated on 31-Jul-2019 09:24:05

5K+ Views

This example demonstrates how do I change the color of the check box 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 apply a theme to an activity only in Android?

Azhar

Azhar

Updated on 31-Jul-2019 09:19:38

602 Views

This example demonstrates how do I apply theme to an activity 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.     Step ... Read More

How to handle a back button in an android activity?

Azhar

Azhar

Updated on 31-Jul-2019 09:09:06

2K+ Views

This example demonstrates how do I handle back button in an android activity.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 does Activity.finish() work in Android?

Azhar

Azhar

Updated on 31-Jul-2019 09:04:01

5K+ Views

This example demonstrates how Activity.finish() work 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.         Step 3 − Add ... Read More

Advertisements