Azhar has Published 721 Articles

Android bundle to pass data between activities?

Azhar

Azhar

Updated on 03-Jul-2020 12:40:01

189 Views

This example demonstrates how to pass data between activities.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 I create a transparent Activity in an Android App?

Azhar

Azhar

Updated on 03-Jul-2020 12:37:06

2K+ Views

This example demonstrates how to create a transparent 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/values/styles.xml.             ... Read More

How do I declare global variables on Android?

Azhar

Azhar

Updated on 03-Jul-2020 12:36:21

1K+ Views

This example demonstrates how to declare global variables 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

How to read value from string.xml in Android?

Azhar

Azhar

Updated on 03-Jul-2020 12:35:28

1K+ Views

This example demonstrates how to read value from string.xml 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/values/strings.xml    Sample    Test string Step ... Read More

How do I change current theme at runtime in my android app?

Azhar

Azhar

Updated on 03-Jul-2020 11:49:36

980 Views

This example demonstrates how do I change current theme at runtime in my 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.   ... Read More

How to detect long press in Android?

Azhar

Azhar

Updated on 03-Jul-2020 11:28:52

1K+ Views

This example demonstrates how do I detect long Press 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 detect end of ScrollView in Android?

Azhar

Azhar

Updated on 03-Jul-2020 11:28:18

1K+ Views

This example demonstrates how do I detect end of scrollView 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 create spinner Programmatically from array in Android?

Azhar

Azhar

Updated on 03-Jul-2020 11:27:41

2K+ Views

This example demonstrates how do I create spinner programmatically from array 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 grant permission at run-time in android?

Azhar

Azhar

Updated on 03-Jul-2020 11:27:09

2K+ Views

This example demonstrates how do I check grant permission at un-time 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 use a Volley Library to parse a JSON in android App?

Azhar

Azhar

Updated on 03-Jul-2020 11:26:36

1K+ Views

This example demonstrates how do I use a volley Library to parse a JSON in 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. ... Read More

Advertisements