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.
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'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
I have 1 problem. I want to link 2 pictures.
Example:I link picture A with picture B. And when i open picture A and i hold my finger on screen for x second, picture B appears.
How can I do that.
I want to link photos in default gallery. And linking via imageview will need to be in my app ( I open 2 pictures in my app and then link them), but I don't want that. I want like this:
My app will be camera(that I created) and then I take pictures and ( in backround) my app link 2 pictures and put them in default gallery. And then when someone open first picture(picture A) and hold his finger x seconds, second picture(picture B) appear.
Thanks
Put another imageview on that imageview and set your picture2 in that view.
when you long press first imageview make it's visibility gone and visible another imageview.
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
Here is my problem. I am currently working on an android application that is handling images. When the application first starts, I have a list of categories (Food, Transport, Emergency ...). So I click on a category for example Food. I find myself in the second activity where I have subcategories (Fruit, Meat, Fish ...). So let's say I click on Fruit. I end up in the third activity which displays images (like in a gridview) of different fruits. I can either click on a fruit to zoom it or I can drag & drop it to the bottom of the activity where I have 3 dropzone that are here for me to create a sequence of images and save it.
So back to my problem, when I zoom on an image I want to be able to add a drawing feature. I want to be able to draw on the image when I click on the menu button of the phone and when I select "Draw". I tried to draw on an image but the drawing lines are always going underneath the pictures so I can't see them. Besides, I want to be able to save the image afterwards and I can't seem to find a way to my problem.
Could someone help me please?
I tried using BitmapFactory but it got me nowhere...
Thank you
Try to use search:
How to draw text On image?
How to draw a Line in ImageView on Android?
https://stackoverflow.com/search?q=android+Draw+on+an+image