Azhar has Published 721 Articles

How to show alert dialog in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:47:47

524 Views

This example demonstrates how do I show alert dialog 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 find the latitude and longitude from address in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:46:22

2K+ Views

This example demonstrates how do I find the latitude and longitude from address 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

MediaPlayer class to implement a basic Audio Player in an Android App

Azhar

Azhar

Updated on 02-Jul-2020 07:40:08

209 Views

This example demonstrates how do I create a Mediaplayer class to implement a basic audio player 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 ... Read More

How do I remove lines between listviews on Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:39:12

255 Views

This example demonstrates how do I remove lines between listviews 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 code to res/layout/activity_main.xml.         ... Read More

How to get and store Device ID in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:38:37

2K+ Views

This example demonstrates how do I get and store Device ID 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.import android.provider.Settings; import android.support.v7.app.AppCompatActivity; import ... Read More

How to get selected Index of the Radio group in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:36:13

3K+ Views

This example demonstrates how do I get selected index of the radio group 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 particular font for a button text in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:35:39

933 Views

This example demonstrates how do I set a particular font for a button 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 pass values between Fragments in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:35:03

1K+ Views

This example demonstrates how do I pass values between fragments 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 prevent a dialog from closing when a button is clicked?

Azhar

Azhar

Updated on 02-Jul-2020 07:32:53

2K+ Views

This example demonstrates how do I prevent a dialog from closing when a button is clicked.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

What is difference between FillParent and wrap content in android?

Azhar

Azhar

Updated on 02-Jul-2020 07:32:16

2K+ Views

This example demonstrates how do I show the difference between fillParent and wrap content 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

Advertisements