android-camera-intent

dlopen failed: library “/system/lib64/libhwuibp.so” not found : Honor 4C 64-bit octa-core CPU

荒凉一梦 提交于 2019-12-22 06:56:35
问题 Whenever I try to open camera/gallery through intent, I am getting this error in my Honor 4C mobile, Android version 6.0 with 64-bit octa-core CPU. load: so=/system/lib64/libhwuibp.so dlopen failed: library "/system/lib64/libhwuibp.so" not found Basically I am trying to crop an image with help of OpenCV-2.4.13.1-android-sdk so file. But this error seems to be device related as in other mobiles the app is working totally fine, could anyone help me in this? 回答1: Have you tried this solution? Hi

Can't receive Intent.extras() from Camera after making a photo

旧时模样 提交于 2019-12-21 17:56:23
问题 I found it's a common problem with capturing photo and receiving full size photo instead of thumbnail (according to: http://developer.android.com/training/camera/photobasics.html ). Taking photo and receiving thumbnail is easy, but rest of tutorial seems to be uncomplete and not working. Anyone resolved it in easy way? public class TakePhoto extends Activity{ static final int REQUEST_IMAGE_CAPTURE = 1; static final int REQUEST_TAKE_PHOTO = 1; private String mCurrentPhotoPath; private

Camera intent android

一笑奈何 提交于 2019-12-21 06:32:51
问题 When I begin the camera intent I give it a file name I would like it to use. When I get this on the phone it uses the phones default file name. Which is no help as I need the image name later in the app. Camera intent code... public void onClick(View view) { String currentDateTimeString = DateFormat.getDateInstance().format(new Date()); System.out.println(currentDateTimeString); filename = ("/sdcard/" + currentDateTimeString + ".jpg"); Intent intent = new Intent(MediaStore.ACTION_IMAGE

Camera of any emulator not working

ⅰ亾dé卋堺 提交于 2019-12-21 04:37:09
问题 Friends I am facing this issue since so long but i am able to get any kind of solution to get working camera in emulator. I have gone through all the answer of the SO but none helped me uptill now. If i create any emulator with any api but in none of my emulator camera application does not work. So i am not able to test any of the application which contains camera functionality. I guess may be its happening because of the hardware configuration of my system. But i am not sure about it. I do

Android where can I get image taken by native camera app

北慕城南 提交于 2019-12-20 06:49:20
问题 I am using native camera app to capture image, And I am not using MediaStore.EXTRA_OUTPUT to specify the path of image. Then how can i get the image using the intent. Thanks. 回答1: To capture images using camera call this intent Intent cameraIntent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE); startActivityForResult(cameraIntent, requestCode); and to handle the callback use onActivityResult function protected void onActivityResult(int requestCode, int resultCode, Intent data)

Android camera Intent not saving in gallery [duplicate]

試著忘記壹切 提交于 2019-12-20 06:12:01
问题 This question already has answers here : Android Newly Taken Photo from custom camera does not appear in gallery (media store) (3 answers) Closed 6 years ago . I am creating a simple application which takes pictures using the camera intent. It works and the pictures are being saved in : storage/emulated/sd/pictures/my_folder . The problem is that I can't see those pictures from the Android Gallery app. I saw different posts about but I couldn't find an answer. How can I watch the pictures?

Capture image rotate after upload

让人想犯罪 __ 提交于 2019-12-20 05:56:25
问题 I am uploading image to server but image is rotate after uploaded to server Even preview is showing correct. So many people facing this problem i found this link but didn't work. And there is many solution but i am not figure out how to fit in my code. Please help me. Here is my code import android.app.AlertDialog; import android.app.ProgressDialog; import android.content.DialogInterface; import android.content.Intent; import android.database.Cursor; import android.net.Uri; import android.os

How to save Exif data after bitmap compression in Android

孤街醉人 提交于 2019-12-19 07:16:09
问题 After taking a picture with the camera intent, I compress the bitmap to lower the file size. The problem is that after compression, it loses all EXIF data. I have no problem retrieving the original EXIF data, however, how do I add this EXIFF data after compression into the byte array ? (My guess is to take the byte array and create a bitmap of that, then add the old EXIF data and thereafter add to byte array again, but this is a mobile application and I'm taking a lot of images so I don't

Getting Uri Null in capture photo from camera intent in samsung mobile

徘徊边缘 提交于 2019-12-18 17:56:13
问题 I am getting null in contenturi in samsung phones while capturing photo from camera but rest of others phones its working fine. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); try { if (requestCode == IMAGE_CAPTURE) { if (resultCode == RESULT_OK){ Uri contentUri = data.getData(); if(contentUri!=null) { String[] proj = { MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery(contentUri, proj,

Getting Uri Null in capture photo from camera intent in samsung mobile

南笙酒味 提交于 2019-12-18 17:56:03
问题 I am getting null in contenturi in samsung phones while capturing photo from camera but rest of others phones its working fine. @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode, data); try { if (requestCode == IMAGE_CAPTURE) { if (resultCode == RESULT_OK){ Uri contentUri = data.getData(); if(contentUri!=null) { String[] proj = { MediaStore.Images.Media.DATA }; Cursor cursor = managedQuery(contentUri, proj,