Azhar has Published 721 Articles

How to delete an SMS from the inbox in Android programmatically?

Azhar

Azhar

Updated on 02-Aug-2019 06:28:23

2K+ Views

This example demonstrates how do I delete an sms from inbox in 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 set only numeric value for edittext in Android?

Azhar

Azhar

Updated on 02-Aug-2019 06:08:36

580 Views

This example demonstrates how do I set only numeric value for 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 set the date in datepicker dialog in android?

Azhar

Azhar

Updated on 01-Aug-2019 07:23:12

1K+ Views

This example demonstrates about how do I set the date in datepicker dialog 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 projectStep 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to change Screen Orientation programmatically using a Button in Android?

Azhar

Azhar

Updated on 01-Aug-2019 07:21:21

1K+ Views

This example demonstrates about how do I change the Screen Orientation programmatically using a Button 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 projectStep 2 − Add the following code to res/layout/activity_main.xml. ... Read More

Where and how to use to static variables in android studio?

Azhar

Azhar

Updated on 01-Aug-2019 07:19:46

522 Views

This example demonstrates about how and where do I use static variable in 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 projectStep 2 − Add the following code to res/layout/activity_main.xml.   ... Read More

How to load an ImageView by URL on Android using Picasso?

Azhar

Azhar

Updated on 01-Aug-2019 07:18:59

570 Views

This example demonstrates about how do I load an ImageView on Android using Picasso.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 − Gradle Scripts from Project → Click build.gradle (Module: app) ... Read More

How to get the touch position on android device?

Azhar

Azhar

Updated on 01-Aug-2019 07:17:40

1K+ Views

This example demonstrates about how do I get the touch position on android device.Step 1 − Create a new project in Android Studio, go to File ⇒ New Project and fill all required details to create a new projectStep 2 − Add the following code to res/layout/activity_main.xml.     ... Read More

How to call OnDestroy Activity in Android app?

Azhar

Azhar

Updated on 01-Aug-2019 07:16:37

745 Views

This example demonstrates about How do I call OnDestroy Activity in 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.     Step ... Read More

How to change color of Button in Android when Clicked?

Azhar

Azhar

Updated on 01-Aug-2019 07:15:44

4K+ Views

This example demonstrates about How do I change the color of Button in Android when clicked.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 detect airplane mode is on or off in Android?

Azhar

Azhar

Updated on 01-Aug-2019 07:11:19

947 Views

This example demonstrates about How to detect airplane mode is on or off in AndroidStep 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