Azhar has Published 721 Articles

How to bind data from a database to an Android CheckBox in a ListView?

Azhar

Azhar

Updated on 26-Nov-2019 09:55:30

723 Views

This example demonstrates how to bind data from a database to an Android CheckBox in a ListView.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 Justify Text in TextView in Android?

Azhar

Azhar

Updated on 26-Nov-2019 09:45:20

535 Views

This example demonstrates how to Justify Text in TextView 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.     Step 3 − ... Read More

How to detect user inactivity for 5 seconds in Android?

Azhar

Azhar

Updated on 26-Nov-2019 09:37:18

1K+ Views

This example demonstrates how to detect user inactivity for 5 seconds 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 scale an Image in ImageView to keep the aspect ratio in Android?

Azhar

Azhar

Updated on 26-Nov-2019 08:15:19

1K+ Views

This example demonstrates how to scale an Image in ImageView to keep the aspect ratio 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 support different screen size in Android?

Azhar

Azhar

Updated on 26-Nov-2019 08:12:25

1K+ Views

This example demonstrates how to support different screen sizes 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 write a SoftKeyboard open and close listener in an activity in Android?

Azhar

Azhar

Updated on 26-Nov-2019 08:08:50

1K+ Views

This example demonstrates how to write a SoftKeyboard open and a close listener in activity 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 add jar as library on Android Studio?

Azhar

Azhar

Updated on 26-Nov-2019 08:05:08

1K+ Views

This example demonstrates how to add jar as a library on Android Studio.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 jar file to Project/app/libs/Step 3 − Add ... Read More

How to send Email on Android using JavaMail API?

Azhar

Azhar

Updated on 26-Nov-2019 07:57:24

3K+ Views

This example demonstrates how to send Email on Android using JavaMail API.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 disable copy/paste from/to EditText in Android App?

Azhar

Azhar

Updated on 26-Nov-2019 07:49:25

792 Views

This example demonstrates how do I disable copy/paste from/to 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 find out if the GPS of an Android device is enabled or not?

Azhar

Azhar

Updated on 26-Nov-2019 07:46:30

228 Views

This example demonstrates how do I find out if the GPS of an Android device is enabled or not.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 ... Read More

Advertisements