Azhar has Published 721 Articles

How to retrieve shared preferences of other application in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:12:19

729 Views

This example demonstrates how to do I 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 get the distance between two geographic locations in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:11:33

1K+ Views

This example demonstrates how do I get the distance between two geographic locations 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 I delete SharedPreferences data for my Android App?

Azhar

Azhar

Updated on 22-Nov-2019 09:10:49

197 Views

This example demonstrates how do I delete SharedPreferences data for 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 read a simple text file in Android App?

Azhar

Azhar

Updated on 22-Nov-2019 09:09:58

4K+ Views

This example demonstrates how do I read a simple text file in the 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.Create a new Android Resource directory (raw.xml) and add a text ... Read More

How to add calendar events in Android App?

Azhar

Azhar

Updated on 22-Nov-2019 09:08:12

2K+ Views

This example demonstrates how do I add calendar events 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 call an activity method from a fragment in Android App?

Azhar

Azhar

Updated on 22-Nov-2019 09:07:12

5K+ Views

This example demonstrates how do I call an activity method from a fragment 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 iterate a JSON Array in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:06:26

910 Views

This example demonstrates how do I iterate JSON 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.     Step 3 − ... Read More

How should I validate an e-mail address in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:05:43

141 Views

This example demonstrates how do I validate an email 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

How to use RecyclerView inside NestedScrollView in Android?

Azhar

Azhar

Updated on 22-Nov-2019 09:04:50

2K+ Views

This example demonstrates how do I use RecyclerView inside NestedScrollView 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 the build.gradle (Module: app)implementation 'com.android.support:appcompat-v7:28.0.0' implementation 'com.android.support:design:28.0.0' implementation 'com.android.support:recyclerview-v7:28.0.0' ... Read More

How to properly highlight selected item on Android RecyclerView?

Azhar

Azhar

Updated on 22-Nov-2019 09:04:09

2K+ Views

This example demonstrates how do I properly highlight the selected item on android RecyclerView.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.android.support:recyclerview-v7:28.0.0'Step 2 − ... Read More

Advertisements