Android Question Camera intent get saved path

Douglas Farias

Expert
Licensed User
Longtime User
hi i m using this code to open the camera and take a picture
B4X:
    Sub img1_Click
    Dim i As Intent
    i.Initialize("android.media.action.IMAGE_CAPTURE", "")   
    StartActivity(i)
    End Sub

its possible to get where the picture is saved?
witout put extra to save the image

when i put extra i have some problems with rotation on s3 s4

i m want only open camera
take a pucture

and later get from intent where this picture is saved.

note: i can see the picture taked in the galery later i take a photo
i think its possible to get the path but i dont have ideia how *-*

i dont want need use
i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName)))

only get the path saved on camera intent its possible?
 

Douglas Farias

Expert
Licensed User
Longtime User
i cant use, because ezcamera take pictures and save this rotated

same of camera intent with
i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName)))

can u test, take a photo with galaxy s3 u go see what i say

you take a photo and when you go load this photo this is no correct, is up or down or left or right =(


using
B4X:
Sub img1_Click
    Dim i As Intent
    i.Initialize("android.media.action.IMAGE_CAPTURE", "") 
    StartActivity(i)
    End Sub

this it save a photo on the galery, perfect not rotated and no EXIF problem (not rotated)

its possible get the path where camera itent is saved the photo?

with this code i take a photo, back to my app and open chosercontent and i see the photo
but i need

later u take a photo , dont need open chosecontent
when u take a photo you get the path of the camera intent
and load this photo on a imageviiew
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
its strange when i use only
B4X:
Sub img1_Click
    Dim i As Intent
    i.Initialize("android.media.action.IMAGE_CAPTURE", "")
    StartActivity(i)
    End Sub

and dont put extra the camera save normal, not rotated

but its possible get where the picture is saved with this code?

or know when the photo is taked, get the result
and if photo is saved open the galery
else
show a toast

its possible without
i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName))) ?
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
i like ezcamera is fast and simple but the problem is when u dont know what the position the photo is.
sometimes this is for down, sometimes up, sometimes left,
i know rotate this but i dont know how to know every time what rotation is the photo

i make 10 tests now
5x down
3x left
2x up

with ezcamera
i cant use any code to rotate this because i dont know the next rotation

ezcamera would be perfect without this problem.

and with the cam ex , dont have this problem but the size of the photos is the big problem 10mb +
i m making a social app, 1000000+ users can send pictures to vps,

1 test, i go take one picture now
with cam ex and max resolution = 13.5 mb

with my native camera and max resolution = 5.7mb


have any solution to ezcamera erel? i find many users on the forum with this problem but not resolved
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
dont have a way to send the EXIT via putextra when you start the camera or output?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…