Azhar has Published 721 Articles

How to use InputFilter to limit characters in an editText in Android?

Azhar

Azhar

Updated on 03-Jul-2020 06:42:29

1K+ Views

This example demonstrates how do I use inputfilter to limit characters in an editText 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 device’s IMEI/ESN number programmatically in android?

Azhar

Azhar

Updated on 03-Jul-2020 06:41:27

3K+ Views

This example demonstrates how do I get the device’s IMEI/ESN number 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 create text file and insert data to that file on Android?

Azhar

Azhar

Updated on 03-Jul-2020 06:40:02

7K+ Views

This example demonstrates how to create text file and insert data to that file 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 work with Camera in an Android App?

Azhar

Azhar

Updated on 03-Jul-2020 06:39:09

304 Views

This example demonstrates how to work with Camera in an 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 set background drawable programmatically in android?

Azhar

Azhar

Updated on 03-Jul-2020 06:36:44

5K+ Views

This example demonstrates how do I set background drawable 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.     Step 3 − Add the ... Read More

How to change the spinner textSize and textColor in Android app?

Azhar

Azhar

Updated on 03-Jul-2020 06:33:51

722 Views

This example demonstrates how do I change the spinner textSize and textColor 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 read a file from assets on android?

Azhar

Azhar

Updated on 03-Jul-2020 06:33:10

9K+ Views

This example demonstrates how do I read a file from assets 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 locale programmatically in android app?

Azhar

Azhar

Updated on 03-Jul-2020 06:32:23

1K+ Views

This example demonstrates how do I set locale 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.     Step 3 – Create a ... Read More

How to get the height and width of the android.widget.ImageView?

Azhar

Azhar

Updated on 03-Jul-2020 06:29:21

2K+ Views

This example demonstrates how do I get the height and width of the android.widget.ImageView 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 load an ImageView by URL on Android?

Azhar

Azhar

Updated on 03-Jul-2020 06:26:41

6K+ Views

This example demonstrates how to load an ImageView by 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

Advertisements