I want to develop an application with a custom camera with one button over it. when i click on that button the picture should be clicked. once the picture is clicked there should be two buttons 'save' and 'retake'. If i click on save button the captured image should be saved to specified directory. if i click on retake button it should navigate to previous screen(camera with button).
I have gone through many sites and links.but nothing helped me.please help me..
Follow this link. You'll get a basic idea as to how to go about creating a custom camera app. Once you've assigned the image capture intent to the capture button, then you can go ahead. Suggest you to take one step at a time if you're new to Android. You can find more info on building Camera apps here.
Related
I was using LDmultiplayer emulator and see that they got a "QR CODE" feature
that automatically opened a second screen and took whatever was ahead, so I just place it on a pic that had the QR and it would detect. Want to do something similar but use the camera only instead of "Qr". Any idea?
TLDR: The emulator need to take a picture of a picture that is inside it
Click on the More button to open the Extended controls window. On it click on the Camera tab. There you will see two options to add images, one on the wall and one on the table.
Add your image/images and they will be displayed in the emulator.
guys. I want to make a game in which I want to start camera when play button is pressed. There is a problem - it takes too long to open the camera (5-6 seconds). So can I open the camera when the user is in the options menu and when he/she press play button just to get the camera and put the camera view where I want. In that way the user would not wait 5-6 second.
And if there is no way to do this, I can just write "Loading ..." with some picture while the camera is loading, but how can I understand when the camera is ready to remove "Loading..." ?
Thanks in advance !
The answer given by zgc7009 in more detail: http://developer.android.com/training/basics/intents/result.html
As for me, you can initialize camera when your application has started. Just set your SurfaceView invisible or gone. When the user clicks play button set SurfaceView like visible. In this case you don't wait.
Trying to make my application give a cooler look am thinking of this. The user clicks a button on an xml and as a result of this a dynamic image gallery viewer comes in front of the user. Like we have in iphone for changing songs. It could include an arrow to the left and right for the user to see the next or previous picture or the user can just use the finger to move to the next picture. I hope am sketching the right picture to the experts here. is it possible to have such a view in android?can i get any running examples?
you can use the gallery option or view flipper
for gallery try this link
http://mobisoftinfotech.com/android-gallery-widget-example-and-tutorial/
for viewflipper
http://javatechig.com/android/android-viewflipper-example/
I have list of images. what i want that when user clicks on one of the images then it should appear similar like following picture. user can see big image with blur background, and user can change this image by swiping finger(same like activity change). when user press back button it should be cancel. Is it possible in Android? I hope you understand my problem.
yes,you must define a customize dialog, and then open it when you want.
you can code for swipe finger or anything else you are looking for.
making and showing custom dialog here and as some guidance to you, use image view and you must use gesture detector here or here
enough ??
I want to implement app like Gallery in android.
The images captured from camera/gallery must be displayed in thumbnails and whenever i click on thumbnail image should display the full image like in built Gallery app in android devices.
Please help me..
Import the images selected into a gallery, it will prepare thumbnails automatically.
Take another activity with imageview and a button to display selected thumbnail in full screen, launch this activity when you click any item in gallery. This is available in below example.
Gallery-ImageView Example
Coming to Delete button, you have to write action for this button, onClick() method of button's View.onClickListener interface. Please see android developers website to know more about file deletion.
I think you understood.