Azhar has Published 721 Articles

How to set the Android permission on a folder/file on SD Card to be able to write to it?

Azhar

Azhar

Updated on 22-Nov-2019 12:38:02

949 Views

This example demonstrates how do I set the Android permission on a folder/file on SD Card to be able to write to it.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 − ... Read More

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

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

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

250 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

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

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

372 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

Advertisements