Questions tagged [android-camera-intent]

0

votes
0

answer
6

Views

How access pictures after they have been taken by camera used by other app

I have an idea for an android service, and I need to be able to access pictures before they're being taken, to save GPSlocation, moreover, I need also an access to the picture immediately afterwards. Is there any proper way to do it ?
adam17238
1

votes
1

answer
33

Views

Camera intent with image only option

I am trying to add camera intent to my app, I would like to give the user only option to take pictures (Not video), is there a way to hide the video button from the camera: Intent intent = new Intent('android.media.action.IMAGE_CAPTURE'); only disables the button but its still being shown, Thanks!
Coder123
1

votes
0

answer
38

Views

How to attach photo with better resolution when sending mail Android

Hi so i made an application in wich i take a picture whit camera intent and save it in a bitmap and after that i compress it and take the path of the image and attach it but after testing it and send a test email i observed that the image is rather small (something like height:100px && width: 50px b...
1

votes
0

answer
209

Views

FileObserver not working with intent

I need to use camera intent and keep track of the new images taken by the intent. As I need to take multiple photos at a time, I used the intent MediaStore.INTENT_ACTION_STILL_IMAGE_CAMERA. Here is my code: package com.arko.cameraintent; import android.content.Intent; import android.os.Environment;...
Preetom Saha Arko
1

votes
0

answer
502

Views

Permission Denial: starting Intent { act=android.media.action.IMAGE_CAPTURE cmp=android/com.android.internal.app.ResolverActivity }

Please help! Camera cannot open when i click it. I'm using android M, maybe that's the problem. please help me how to open the camera... I'm trying to add some permission but it still doesn't work. I'm already use ` but it still doesn't work. please help this is my code public class TambahLaporActiv...
Qube
1

votes
3

answer
88

Views
1

votes
3

answer
58

Views

Camera intent issue with different phones android

I am calling camera intent to capture an image and get the image uri in onActivtyResult in my fragment. this is my captureImage() private void captureImage() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(intent, REQUEST_CAMERA_STORAGE); } this is my onActivity...
hasan_shaikh
1

votes
1

answer
51

Views

Android: nullponterException after activating camera

I am developing simple drawing application for android. My goal is to: open camera from my application take a photo draw this photo into canvas draw over this photo After activating camera: Intent takePhoto = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if (takePhoto.resolveActivity(getPackageMan...
maxell35
1

votes
0

answer
202

Views

Xamarin Forms Taking a photo on Android and Cropping it

I am supporting Android 4.4 (API 19) using Xamarin Forms. I have a simple requirement of allowing the user to capture a card photo and then automatically cropping it to take exactly the card, the user just needs to press the shoot button. The UI of the interface in action is below: I am currently us...
Adam
1

votes
1

answer
159

Views

ACTION_IMAGE_CAPTURE returns poor image quality bitmap, where can I get the hi-res image?

I want the good quality image to show in ImageView and upload to the server. I have searched the Internet, StackOverflow and GitHub, but I could not find the answer, maybe somebody knows how can fix it? protected void onActivityResult(int requestCode, int resultCode, Intent imageReturnedIntent) { //...
evgeny
1

votes
2

answer
96

Views

How do I force the user to use the front facing camera?

I am developing a program that uses the camera. I am using media store to get the raw footage from the android camera. I want the user to have to use the front facing camera, or at least open it front facing by default. Intent cameraIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);...
Joshua Best
1

votes
0

answer
25

Views

Can we Write Image file to camera preview in android application

How can i write image or video data which is stored in a file to a camera preview using an android application. Video should be replaced of camera preview (camera preview is taken from camera) when we launch camera. Is there any Camera APIs which we can write to a camera?
Mallamma
1

votes
0

answer
208

Views

Android WebView Capture & Upload Video & Image with camera & from storage

I am trying to upload images & videos to a webView from camera and from storage. Previously it was working for uploading images and capturing photos from the device with the code below. I made some changes to support video uploading as well but it didn't work so I unchanged it. But now uploading cap...
EZ SERVICES
1

votes
0

answer
65

Views

ip camera view for android application in android studio

I would like to make an android application. like this one https://play.google.com/store/apps/details?id=com.ichano.athome.camera One android phone camera will be accessible by another mobile through app with push talk feature. Is there is a library for ip camera view. I did my search and came to k...
John
1

votes
2

answer
74

Views

Choose image size in camera intent

I'm new to this forum, so please bear with me and gently point out mistakes if any, So I'm working on a project where I'm uploading images to server, now I want to limit the size of images, I'm giving an option to 'Click image' where my code will open default camera intent and clicks the pic, or 'Ch...
madsDevTeam
1

votes
1

answer
173

Views

Android - revoked permission android.permission.CAMERA

I am opening Camera with kotlin like bellow: private fun dispatchTakePictureIntent() { Intent(MediaStore.ACTION_IMAGE_CAPTURE).also { takePictureIntent -> // Create the File where the photo should go val photoFile: File? = try { activity?.createImageFile() } catch (ex: IOException) { Timber.e(ex) nu...
jo jo
1

votes
0

answer
36

Views

Device screen turns black after opening camera intent

[SOLVED] I don't know why it was doing that but all I had to do was to restart my phone and it started to work again. Happy coding everyone! :) I have been developing an app where you can capture images and post them. The camera intent has been working great previously but today when I built the ap...
Aapo Vainonen
1

votes
2

answer
1.4k

Views

Android : Getting byte[] from Image ID

Here is what I am doing: In onActivityResult, I get the data in an Intent. Intent intent = new Intent('android.media.action.IMAGE_CAPTURE'); startActivityForResult(intent, TAKE_PICTURE); This code gets the image ID: data.getData().getLastPathSegment(); Now i want to use this image ID to get byte[] i...
Faheem Kalsekar
1

votes
1

answer
1.5k

Views

Overlay the Android camera app aka the barcode scanner

When the Android camera opens it fills up the screen in width and height but actually I want the app to open and limit upto certain dimensions on the screen aka BarCode Scanner but here the catch is that the image taken should limit the boundary of the rectangle that the app shows on its surface. Is...
Sana
1

votes
2

answer
720

Views

Android SDK Nexus S native camera issue

I am developing an app using android native camera. I can successfully take a photo and store and display on ImageView. I am testing on HTC desire Z, Nexus S and Motorola Zoom. It works on all three devices except one issue on Nexus S. When I take a photo using Nexus S, the preview image has been ro...
Chinthaka
1

votes
1

answer
771

Views

invoke default camera and save pic at user defined location which is not part of gallery

I am trying to invoke the default device camera from my application to take picture using intent android.provider.MediaStore.ACTION_IMAGE_CAPTURE. Everything seems to be working fine except for when i click and save a particular image it gets stored at two location 1. At the default camera location....
Deva
0

votes
0

answer
10

Views

android studio, take photo and save the photo, get the Uri of that photo

I followed the Andriod developer tutorial. Take a photo using the exsiting camera, and save the photo full size. And get the Url of the photo. I use the file provider. When I run the app, it can take a photo, but the photo never shows up in the archive gallery. maybe, I never get the path right? pub...
Yaoyi Fan
1

votes
1

answer
178

Views

Is there a way to remove the pause button from the custom camera view in Android?

I am building an Android app that uses the phone's camera feature. I know there is a way to build a custom camera view. Instead, I am choosing to use the camera app via an intent and not build my own camera view. I want to disable/make disappear the pause button while taking a video and have just th...
user1210233
1

votes
1

answer
2k

Views

Camera Intent Returns Null

I am trying to capture image and video from my android application with the default camera using Intent. Intent intent = new Intent('android.media.action.IMAGE_CAPTURE'); startActivityForResult(intent, IMAGE_FROM_CAMERA); Using above code i tried to capture Image and in onActivityResult i am gettin...
1

votes
2

answer
2.9k

Views

Setting resolution of the image taken by a camera

In my application, I am taking an image through the inbuilt camera activity and storing it in the SD card. I am using intent.putextras to get a high resoltuion image. 1st device- The code works successfully and I get an image of resolution of 640X480. 2nd device- When the built in camera activity as...
kumar piyush
1

votes
1

answer
1.1k

Views

Take photo in camera and edit it

I need take a photo and edit it. I used origin camera and return big size image, so when I try create new template image to edit, the application will be forse close because outOfMemoryError. is there any way help me resize image before load it into my application? My code take image in camera: void...
Sunary
1

votes
1

answer
1.9k

Views

Getting photo from camera and gallery

Hi, I am creating a simple Android app which allows user to select photo from either photo gallery or take one using camera. After getting the selected photo, I will start another activity to do something with the photo. However I have some problem displaying the photo in another activity. Here is t...
user1642888
1

votes
1

answer
422

Views

image capture app using intent only saves current picture..previouse pic losts everytime

I am developing an app to capture an image and save it to sd card ..but everytime it saves current file and removes previous one i have used this example Code Used: //On button Click Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); inte...
Shiv
1

votes
2

answer
842

Views

Implement a Take Picture + Crop or use premade Intents?

I'm in the middle of an Android app which takes a picture, crops it and does some extra stuff. I was hoping to do my own cropping system, but the problem comes when I test in different places. Pictures appear rotated in some cases, and not correctly cropped in others (like they had an extra margin a...
Korcholis
1

votes
2

answer
2.5k

Views

How to capture image automatically using intent and without any user interaction

I am trying to develop an android application that automatically takes picture using camera intent without any interaction from a user but cannot get the code to trigger the image capturing action automatically. anybody with help??. Here is my code @Override protected void onCreate(Bundle savedInsta...
1

votes
1

answer
3.7k

Views

Android second layer on running camera app

I´m new in Android programming and I want to program a simple App for practise. I already searched the web for hours, but didn´t find any answers for my problem. I want to put a 2. layer above the running camera app. If I take a picture, it shouldn´t show the 2. Layer in the Picture, like there w...
csnewb
1

votes
2

answer
283

Views

android :can't save image in folder and display it in activity

i want to capture an image and save it in folder, but when i capture it, my image is not save in folder that i want, but just save in gallery, and the name of my image is not like what i want. my image also not display in my activity, is there anyone know, why this is happen? this is my code : priva...
Aoyama Nanami
1

votes
2

answer
912

Views

image put into ImageView from taken picture not always showing up

An image taken from the camera doesn't always show up in my ImageView. It seems like it is random when it wants to show up. Why is it doing this? Activity that takes picture private void takePicture() { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if (intent.resolveActivity(getPackag...
The Nomad
1

votes
1

answer
1.6k

Views

Android camera intent not working on some devices

In my app, there is a button which launches the camera intent and saves the captured image at given path. The captured image is saved when user clicks on Right mark or save option from camera.At the same time when user click on Right mark or save option from camera the onActivityResult() of Camera i...
Rahul Matte
1

votes
2

answer
2.7k

Views

How to take a picture and save it in a custom folder for my app visible in the Gallery

I´ve been struggling with this for a few days now and other answers posted in similar questions here on stackoverflow haven´t helped me. What I want to do is set a custom ArrayAdapter to my ListView and inside this adapter I want to set an onClickListener to a button that appears in every item. T...
vandus
1

votes
1

answer
1.7k

Views

Android Take Photo and Save to Variable

I would like to allow the user to take a photo, and when finished, have it passed directly into a variable (Bitmap preferably) instead of saved to memory. I've tried using the default android camera intent but cannot seem to stop it from saving to memory and showing up in the gallery. Any suggestion...
balloway
1

votes
1

answer
941

Views

OnActivityResult not triggered inside Fragment

I'm calling ACTION IMAGE CAPTURE intent from a fragment, and I've implemented the onActivityResult() in same fragment but the onActivityResult is not triggered while running it with my note2 device. Check the code snippets below that I used. It worked fine when I am not using import android.suppor...
fɪəlɪs
1

votes
1

answer
411

Views

Copying images from the DCIM folder to another folder cause loss of image quality

I am using default camera intent to capture images in my activity. After that I store their path in in an array. At end of activity, I copy the images to my application folder. For some reason the images are not copying in full quality. Ex: If an image in the DCIM folder is 1.04 MB, then it is only...
1

votes
1

answer
597

Views

Call Camera Service inside fragment, how to handle the callback?

Normally to call the camera we use the code like: startActivityForResult(intent, REQUEST_CAMERA); to start camera services. And use the onActivityResult to get the return photo uri. It works well in the activity. However, for the fragment, the call back is only trigger in Main Activity instead of th...
user782104
1

votes
1

answer
1.1k

Views

Android onActivityResult (from MediaStore.ACTION_IMAGE_CAPTURE) does not get data on Galaxy S5

I am developing an application which among other things makes pictures. To take the picture I use: Intent camera = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(camera, 1); My onActivityResult: public void onActivityResult(int requestCode, int resultCode, Intent data) { supe...
Emmanuel Guther

View additional questions