Azhar has Published 721 Articles

How to change android overflow menu icon programmatically?

Azhar

Azhar

Updated on 03-Jul-2020 06:24:42

2K+ Views

This example demonstrates how do I change android overflow menu icon 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.         Step 3 − ... Read More

How to pass drawable between activities in android?

Azhar

Azhar

Updated on 03-Jul-2020 06:23:20

699 Views

This example demonstrates how do I pass drawable between activities 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

How to add a line break in an android textView?

Azhar

Azhar

Updated on 03-Jul-2020 06:22:30

6K+ Views

This example demonstrates how do I add a line break in an android textView.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 can I disable/enable GPS programmatically in android?

Azhar

Azhar

Updated on 03-Jul-2020 06:10:08

323 Views

This example demonstrates how do I disable/enable GPS 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.         Step 3 − Add ... Read More

What is Context on Android?

Azhar

Azhar

Updated on 03-Jul-2020 06:09:18

6K+ Views

Definitionit's the context of current state of the application/object. It lets newly-created objects understand what has been going on. Typically, you call it to get information regarding another part of your program (activity and package/application). In the below program you will see that we have created a textView dynamically and ... Read More

How to make an android spinner with initial default text?

Azhar

Azhar

Updated on 03-Jul-2020 06:03:10

7K+ Views

This example demonstrates how do I make an android spinner with initial default text 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 parse JSON on Android?

Azhar

Azhar

Updated on 03-Jul-2020 06:01:52

217 Views

This example demonstrates how to parse JSON 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 make an ImageView with rounded corners on Android App?

Azhar

Azhar

Updated on 03-Jul-2020 06:01:17

6K+ Views

This example demonstrates how to make an ImageView with rounded corners on 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 parse JSON Objects on Android?

Azhar

Azhar

Updated on 03-Jul-2020 06:00:38

524 Views

This example demonstrates how to parse JSON Objects on 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 dependency to Gradle Scripts ⇒ build.gradle and do syncapply ... Read More

How to get the difference between two dates in Android?

Azhar

Azhar

Updated on 03-Jul-2020 05:59:08

3K+ Views

This example demonstrates how do I get the difference between two dates 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