Azhar has Published 721 Articles

How to show a dialog to confirm that the user wishes to exit an Android Activity?

Azhar

Azhar

Updated on 22-Nov-2019 12:31:33

2K+ Views

This example demonstrates how do I show a dialog to confirm that the user wishes to exit 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 ... Read More

How to detect swipe direction between left/right and up/down in Android?

Azhar

Azhar

Updated on 22-Nov-2019 12:28:01

2K+ Views

This example demonstrates how do I detect swipe direction between left/right and up/down 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 set a Timeout for an AsyncTask in Android?

Azhar

Azhar

Updated on 22-Nov-2019 12:21:21

908 Views

This example demonstrates how do I set a Timeout for an AsyncTask 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 do detect Android user agent type in general?

Azhar

Azhar

Updated on 22-Nov-2019 12:16:06

171 Views

This example demonstrates how do I detect an Android user agent type in general 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 find the currently running applications programmatically in Android?

Azhar

Azhar

Updated on 22-Nov-2019 12:11:46

887 Views

This example demonstrates how do I find the currently running applications programmatically 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 status bar color to match app Android?

Azhar

Azhar

Updated on 22-Nov-2019 12:08:36

3K+ Views

This example demonstrates how do I change the status bar color to match app 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 pass an image from one activity another activity in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:15:35

4K+ Views

This example demonstrates how to do I pass an image from one 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.   ... Read More

How to disable ScrollView Programmatically in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:14:54

2K+ Views

This example demonstrates how to do I disable ScrollView programmatically 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 check the system version of Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:14:14

232 Views

This example demonstrates how to do I check the system version 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 disable Home and other system buttons in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:13:01

996 Views

This example demonstrates how to do I 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 the ... Read More

Advertisements