Azhar has Published 723 Articles

How to check current running applications in Android?

Azhar

Azhar

Updated on 31-Jul-2019 10:57:15

633 Views

This example demonstrates about How to check current running applications 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 to implement a long click listener on a Android listview?

Azhar

Azhar

Updated on 31-Jul-2019 10:49:04

959 Views

This example demonstrates about How to implement a long click listener on a Android listview.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 launch activity only once when Android app is opened for the first time?

Azhar

Azhar

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

645 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

774 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

466 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

720 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

1K+ 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

524 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

Advertisements