Questions tagged [android-camera-intent]

Questions related about calling the camera app from the local device, without the camera permission.

The camera intent is a way to make photos or videos with the camera app of the device without implementing a custom camera activity.

Here is a basic example for such a call:

// create Intent to take a picture and return control to the calling application
Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);

fileUri = getOutputMediaFileUri(MEDIA_TYPE_IMAGE); // create a file to save the image
intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri); // set the image file name

// start the image capture Intent
startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);

See the full code on the documentation.

971 questions
-1
votes
1 answer

integrate photo editing AVIORY API with camera app

I want to integrate 3rd party photo editing AVIORY api with the native camera app I am developing but I am not able to do that. The api works after capturing the photo. Please let me know how can I implement this AVIORY API. This is the link to api:…
-1
votes
1 answer

android camera application flash

I am facing a problem in a custom camera application. With the flash function turned ON, the phone takes the 1st photo with flash, but on the 2nd photo it doesn't use the flash. flashCameraButton.setOnClickListener(new View.OnClickListener() { …
-1
votes
3 answers

Camera Capture Image is not clear(Blurry) in Android

I Have a Problem with the Camera Capture Image.its set blurry. I searched lots of but i can't Get Solutions I don't know How to solve issue Here is My Code Which i Used For Camera Capture Image @Override public void onActivityResult(int…
-1
votes
1 answer

How to have base fragment code which takes picture from gallery and camera

I need to take pictures from camera and gallery and do certain some functionality,This needs to be done from two places(fragments), How can i write common code.Is it possible,Like a base class?
Rakesh
  • 14,997
  • 13
  • 42
  • 62
-1
votes
1 answer

how to solve image capture data bug?

I have this code to capture image or select from gallery and then crop it. The image does not show and inside onActivityResult the data variable is null. What should I do to solve this? Please help!! Thanks in advance. import java.io.File; import…
andrDev
  • 23
  • 1
  • 11
-1
votes
1 answer

How to pick images from Gallery instead of Photos in android?

I am using the following code to pick images. Intent photoPickerIntent = new Intent(Intent.ACTION_PICK); photoPickerIntent.setType("image/*"); photoPickerIntent.setData(android.provider.MediaStore.Images.Media.EXTERNAL_CONTENT_URI); …
Ali Ansari
  • 219
  • 3
  • 14
-1
votes
1 answer

Image quality from camera not good

I am creating a app in which on button click i open the default camera to camera a image and save that image.But when ever i am viewing that image,the quality of that image is very poor.I dont know why this is happening??? Code if…
Anuj
  • 402
  • 8
  • 16
-1
votes
1 answer

Android Camera intent with Uri not saving the images on Camera folder

I am using Camera Intent with following code public void clickPicturesThroughCamera() { try { Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); initImageUri(); intent.putExtra(MediaStore.EXTRA_OUTPUT,…
laaptu
  • 2,963
  • 5
  • 30
  • 49
-1
votes
2 answers

how to use camera intent in ListView

public void CAPTURE() { final ListView mListView = (ListView)findViewById(R.id.lvImage); .... set adapter ... mListView.setOnItemClickListener(new OnItemClickListener() { public void onItemClick(AdapterView myAdapter,…
-1
votes
1 answer

take a camera picture and send to php server in android using multipart entity

I have taken the photo from camera and getting the image from sdcard also . Here i have to upload this photo to php server. How can i do ??? please give me a solution. EDIT: As am getting the string value of image path is :…
-1
votes
3 answers

How do I resolve force close error upon onActivityResult() call?

I have an application that takes a picture using an intent. Here is my main activity. public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); this.imageView =…
billions_ln
  • 554
  • 4
  • 10
-1
votes
1 answer

Capture image with stock camera an display in webview

I am trying to launch to android camera with an onClickListener and take a picture which saves to a specific folder onto the sdcard and then displays the captured image inside a webview. heres my code so far. private static final int CAMERA_REQUEST…
-2
votes
2 answers

How to get image from camera in android

This is the code i am using. Intent takePictureIntent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE); if(takePictureIntent.resolveActivity(getPackageManager()) != null) { startActivityForResult(takePictureIntent, PICK_IMAGE_CAMERA1); } …
Thrishool MSM
  • 337
  • 3
  • 11
-2
votes
2 answers

how to send image taking by camera to server in actual size?

It Compresses in low quality but i want to send high quality image bitmap = BitmapFactory.decodeFile(str); ByteArrayOutputStream stream = new ByteArrayOutputStream(); bitmap.compress(Bitmap.CompressFormat.PNG, 40, stream); …
-2
votes
1 answer

App crashes after capturing image

After capture camera image when i save then not return in activity and crash app but everything is ok in my Samsung mobile but giving this error in redmi phone and others mobile at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:635) …
1 2 3
64
65