I'm creating an image filter app in Android studio. first, the user selects an image from gallery or captures image using camera and it will be displayed in imageview. Then the user clicks edit button and that image is displayed in imageview of next activity where we can add filters... It works fine with low resolution images but when I select any high resolution image or click a high resolution image it is shown in first imageview but when I click edit button either the app crashes or the last image I had selected is displayed. So instead of passing bitmap I thought of passing image uri.I found the solution for image selected from gallery but I want the uri of captured image. I searched for the solution but couldn't find it. If anyone knows how to solve this problem please help me. THANKS
Could you post the code of what you have tried. A quick google search gave me this answer: How to get Image Path just captured from camera . hope it helps
Related
can you plesae tell me what can I use to make the gallery widget that is on the left side of the capture button. I am guessing I would need access to the last image captured and an image view and then the person would be taken to the gallery to select the image. Can you please tell me how I should go about that and any references to websites or documentation?
Take a look here. There is answer how to get last picture taken by user and then you can simply set it to your ImageView.
i am doing an android app that launches camera and capture an image, then crop and save the image. Then takes the image for some process.
i was trying with some suggestions and tutorials by searching on Google. but i am getting error after cropping. The image is being cropped and actual image remains in SD-Card also the cropped image saved as "image~2" in same location. but while we try to use the cropped image filenotfoundException is returned. Any one please help me.
"can i post my code?" - You should, actually, if you want some help here... Anyway considering the exception, you're searching for the image where it is not.
Or you can try this: https://github.com/edmodo/cropper
I am very much new this issue.I want to make application like this.look at the image below,This is a brief summary of my requirement.
ok so top there is a image view.After user capture image from camera in OnActivityResult I am displaying captured image on main image view. Below that image view there is a HorzontalScrollView, Inside HorzontalScrollView i have put couple of images,like hat,spects etc...
ok so What i want is, user should be able to drag any image from HorzontalScrollView and can be able to put that small image on main image view.
Any guide/tutorial will be appreciated from guys who have worked on such functionality
Thanks
I am developing application where user capture's photo and moves to next activity with captured image. Now in next activity i have already given another image via XML which i am able to move and set anywhere over captured image now what i want is when i press OK button then this activity should move to next activity with captured image and also other image which i have set.
i have done with this but the problem is, i want to Fix the position of other image, example if i have set that image on captured images Nose then it should show on nose for Next activity. I don't have any idea about this. Can anyone tell me how to fix the absolute position of Image or any sample code that might help me.
Here you can see the photo, When i press OK button next activity looks something like this. http://share.pho.to/3wDYP
Basically you need to merge these two images into one. Create a bitmap and add both images into one.
Here is an example answer1 and answer2.
Also This is a very useful Tutorial 1 and Tutorial 2 for you.
I have implement Gallery and Image Switcher in Eclipse Android Development.
On click of thumbnail, it loads the image and on click of Set Wallpaper, it sets the wallpaper as well. But as soon as the application loads, I want to display the first image from the Gallery to Image Switcher. Other wise if you click on Set Wallpaper, it will throw an exception. After you select an image from the Gallery, it will work fine.
Can anyone please help me how to show the first image of the gallery in Image Switcher so that when I click Set Wallpaper without selecting an image, it should work fine
One more thing, after image switcher initialization, I have set the first image but it takes the entire window in Emulator? If you select an image it show the preview.
Thanks in advance.