Tag Archives: URI
How to crop an Image in Android?
This is a sample program that launches the camera and crop the captured image. Check this link to another crop image example. http://www.coderzheaven.com/2011/03/15/crop-an-image-in-android/ This is the layout xml. activity_main.xml Now this is the Main Java File that implements the crop functionality. Here we are using the “com.android.camera.action.CROP” Intent to crop the Image passing the captured Image URI to… Read More »
How to add a new contact programmatically in android?
We all know how to add a new contact to our android devices without programming right. OK that’s a normal man’s use. But what from a programmer’s view. This is the sample java code that helps you to add contact programatically. After running this programs please switch to contacts application on your device to see the result. Please… 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. Demo Watch Video Tutorial Steps : Ask storage permission from the user if the app runs on… Read More »