Рет қаралды 57,791
If this helped, consider buying me a coffee:
BuyMeACoffee: buymeacoffee.com/thecodecity
BTC: 18aykL2WcZX8S1BCheV85JJgPQWWXoPvAS
ETH: 0xe3bb3c3650a084e1229a8574d9f611c01d3b847f
RVN: RLNRybTC8TzqoxWC65mrK4yF4BRPZFarzY
ZEC: t1YU7XLWVfA7uMQdRWknZ37rxvJ72xcL4uL
In this tutorial, we create an Android app that takes picture from the Camera and displays it in an ImageView. The steps involved are:
1. Create a layout with button to open Android Camera
2. Create main activity and ask for permission to use camera and write to external storage.
3. Create a FileProvider
4. Create an Intent with ACTION_CAPTURE
5. Get the Bitmap in onActivityResult and display the Image in ImageView
This is a comprehensive tutorial that shows you how you can take pictures using the Camera in your Android app and how you can save it to local storage.
TheCodeCity Website: www.thecodecity.com
~-~~-~~~-~~-~
You can check how to upload taken image here:
• Upload Image to Server...
~-~~-~~~-~~-~
Social Media:
thecodecity
thecodecity
thecodecity