Azhar has Published 721 Articles

How to set ringtone in Android from Android activity?

Azhar

Azhar

Updated on 02-Jul-2020 08:01:31

2K+ Views

This example demonstrates how do I set ringtone in android from android activity.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 add a button dynamically in android?

Azhar

Azhar

Updated on 02-Jul-2020 08:00:49

2K+ Views

This example demonstrates how do I add a button dynamically 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

How to change screen brightness programmatically in android?

Azhar

Azhar

Updated on 02-Jul-2020 08:00:05

3K+ Views

This example demonstrates how do I change screen brightness 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.         ... Read More

How to set background color of an android activity to yellow Programatically?

Azhar

Azhar

Updated on 02-Jul-2020 07:56:23

5K+ Views

This example demonstrates how do I set background color of an android activity to yellow 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.   ... Read More

How to retrieve android API version programmatically?

Azhar

Azhar

Updated on 02-Jul-2020 07:55:14

2K+ Views

This example demonstrates how do I retrieve android API version 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 ... Read More

How to set the layout weight of a textview programmatically in Android?

Azhar

Azhar

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

1K+ Views

This example demonstrates how do I set the layout weight of a textView 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.   ... Read More

How to take pictures with camera on Android Programmatically?

Azhar

Azhar

Updated on 02-Jul-2020 07:52:06

3K+ Views

This example demonstrates how do I take pictures with camera on android 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.         ... Read More

How to create custom ratings bar in android?

Azhar

Azhar

Updated on 02-Jul-2020 07:51:21

665 Views

This example demonstrates how do I create custom ratings bar 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 create editText accepts Alphabets only in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:50:43

2K+ Views

This example demonstrates how do I create edittext accepts alphabets only 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 display progress bar while loading a url to webView in Android?

Azhar

Azhar

Updated on 02-Jul-2020 07:48:41

4K+ Views

This example demonstrates how do I display progress bar while loading a url to 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

Advertisements