Azhar has Published 451 Articles

How to use Location API in Android to track your current location?

Azhar

Azhar

Updated on 26-Nov-2019 07:02:22

593 Views

This example demonstrates how do I use Location API in android to track your current location.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new project.Add the following dependency in the build.gradle (Module:app) −implementation 'com.google.android.gms:play-services-maps:17.0.0'Step ... Read More

How to use NavigationView in Android?

Azhar

Azhar

Updated on 26-Nov-2019 06:57:42

3K+ Views

This example demonstrates how do I Use NavigationView 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 implement endless list with RecyclerView in Android?

Azhar

Azhar

Updated on 26-Nov-2019 06:49:32

388 Views

This example demonstrates how do I implement an endless list with RecyclerView 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.Add the following dependency in build gradle (Module app) −implementation 'com.android.support:cardview-v7:28.0.0' implementation ... Read More

How can I style an Android Switch widget?

Azhar

Azhar

Updated on 26-Nov-2019 06:41:42

757 Views

This example demonstrates how do I Style an Android Switch Widget 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 handle right-to-left and left-to-right swipe gestures on Android?

Azhar

Azhar

Updated on 26-Nov-2019 06:35:28

5K+ Views

This example demonstrates how do I handle right to left and left to right swipe gestures 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 ... Read More

What is the best way to auto scale TextView Text to Fit within Bounds on Android?

Azhar

Azhar

Updated on 22-Nov-2019 13:24:20

555 Views

This example demonstrates how to do I auto scale TextView text to fit within the bounds 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.Add the following dependencies to build.gradle: Module: App)implementation ... Read More

How to use SQLite database with an Android application?

Azhar

Azhar

Updated on 22-Nov-2019 13:18:59

1K+ Views

This example demonstrates how do I use the SQLite database with an android application.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 the Android device's primary e-mail address?

Azhar

Azhar

Updated on 22-Nov-2019 12:53:49

1K+ Views

This example demonstrates how do I get the android device's primary e-mail address.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 send data from one Fragment to another Fragment in Android?

Azhar

Azhar

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

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

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

Advertisements