Tag Archives: startActivityForResult

Floating Button like Facebook Chat in Android

Floating widgets float over the screen over any app that is currently running. Here we will make a floating action button that you can drag around the screen to position and do actions on it. Add Permission For drawing over the other apps, you need “android.permission.SYSTEM_ALERT_WINDOW” permission. So add this entry in your manifest. Our Manifest will look… Read More »

Bluetooth Demo in Android – Listing paired Devies, Find other Online BT devices, Connect to a BT Device, Communicate between connected BT Devices ( Chat ).

In this Demo we will see Check compatibility of the device. Turn On/Off Bluetooth, Making it discoverable List Paired Devies. Check for Online Bluetooth Devices. Connect with a Device. Communicate between Connected Bluetooth Devices. Disconnect from Device. You can download the complete Android Studio Source code at the end of the post. Before We start with the coding,… Read More »

Select an Image from gallery in ANDROID and show in an ImageView.

Hi all In this tutorial I will show you how to get an image from your phone gallery and show it in an imageview.Here we use intents to open up the image gallery and get the image URI. Steps : Set the image type as “image” to get only the images. on onActivityResult if the result is OK,… Read More »

How to Open camera in ANDROID?

Hello everyone.. In today’s tutorial I will show you how to use camera in ANDROID in your program. In this tutorial we will be having a button which will open the camera and after taking the photo it will show it in an imageView. Note: This program will work only in the real device not in the emulator.… Read More »