How to create an android camera app using intents - Part 3

preview_player
Показать описание
But for those of you experienced in Java by all means do this series.

This android camera intent tutorial is part 3 of a six part series.

***Note***

In this tutorial we will calling an external camera application by using an Intent with the MediaStore.ACTION_IMAGE_CAPTURE action. Thereby we will take a photo with the external camera application and have it return back to our android application because of the startActivityForResult function. Once back inside our application activity onActivityResult function we will call the Toast function to display whether our external application call was successful or not.

In this tutorial we will cover:
- Intents & the MediaStore.ACTION_IMAGE_CAPTURE
- StartActivity for result
- onActivityResult
- Android Toast
- Run the application on device.
- Walk through the code with the debugger.

This tutorial series is intended for beginners to android who have had some programming experience ideally with an object orientated language such as java or C++ for you will be exposed to writing android java code syntax.

This tutorial series does not use the android camera api's but calls one of the android camera applications via intents to capture it's image.

Android studio (1.2.2) is the editor of choice (IDE) for this tutorial series.

This tutorial will expose viewers to the android concepts of:
Intents
Activities
Android toasts.
Debugging.

This tutorial series is the first of what I expect to be many so I encourage comments and feedback to improve the quality and viewing experience.
Рекомендации по теме
Комментарии
Автор

Thanks dude, you just saved my life!!!

douglassantanagoulart
Автор

Thanks ...but dark theme is annoying... it would be nice to use intelij theme

JustDoItSiri
Автор

Hi there, can you help me with a little issue? When I press "Take Photo" the camera app doesn't start and the app closes ("unfortunately the app stopped working"). Do you know what could be going on?

By the way, thanks for all the videos, your explanations are great!

victorbarroscosta
Автор

When I hit the button the screen goes black and then tells me the error is on the line with "startActivityForResult(callCameraApplicationIntent, ACTIVITY_START_CAMERA_APP);". Help?

SammySamkough
Автор

you are awsome. please make some more video.

woliurkhan
Автор

I have a problem, in my camera app, when I take a photo I can see it in the imageview, but when I turn my phone or close the app and reopen it, the image disappears. Could you help me please?

aquesi
Автор

Thank you very much, wonderful explain and special simple
It has helped me a lot,
Is it possible After taking a picture save the picture by name  text box value in the sd card in a folder name myphoto
Best regards

TARIQALEED
Автор

Hello sir, after i've tried the codes, but when i take a picture on a real device, screen goes black and doesnt go back to activity screen, please help:( ?

izzova
Автор

I get an error

error: illegal character: '\u0000'

fCreatorsPodcast
join shbcf.ru