Azhar has Published 721 Articles

How to convert a color integer to a hex String in Android?

Azhar

Azhar

Updated on 07-Jul-2020 11:44:56

3K+ Views

This example demonstrates how 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.     Step 3 − Add the following ... Read More

How to load files from asset directory into WebView in Android?

Azhar

Azhar

Updated on 07-Jul-2020 11:44:21

3K+ Views

This example demonstrates how do I load files from asset directory into WebView 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 hide and show a menu item in the Android ActionBar?

Azhar

Azhar

Updated on 07-Jul-2020 11:43:04

4K+ Views

This example demonstrates how do I hide and show a menu item in the Android ActionBar.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 can I override the 'Home' button in my Android App?

Azhar

Azhar

Updated on 07-Jul-2020 11:40:42

581 Views

This example demonstrates how 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.     Step 3 − Add the following ... Read More

How to add a button to PreferenceScreen in Android?

Azhar

Azhar

Updated on 07-Jul-2020 09:14:41

1K+ Views

This example demonstrates how do I add a button to PreferenceScreen in android.Step 1 − Create a new project in Android Studio, go to File rArr; 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 save a HashMap to Shared Preferences in Android?

Azhar

Azhar

Updated on 03-Jul-2020 13:25:51

1K+ Views

This example demonstrates about How can I save a HashMap to Shared Preferences 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

Sending an Intent to browser to open specific URL in Android?

Azhar

Azhar

Updated on 03-Jul-2020 13:25:15

5K+ Views

This example demonstrates how do I send an Intent to browser to open specific URL 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

Subscript and SuperScript a string in Android?

Azhar

Azhar

Updated on 03-Jul-2020 13:24:32

893 Views

This example demonstrates how do I Subscript and SuperScript a string 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

Working with Recycler View in Android App

Azhar

Azhar

Updated on 03-Jul-2020 13:23:47

518 Views

This example demonstrates about Working with Recycler View in Android AppStep 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 do you animate the change of background color of a view on Android?

Azhar

Azhar

Updated on 03-Jul-2020 13:22:59

1K+ Views

This example demonstrates how do I animate the change of background color of a View 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

Advertisements