Android Question Camera EZ Result

Douglas Farias

Expert
Licensed User
Longtime User
Hi all
I m using the camera ez to take photos with the native camera.
Ok, this works fine on some devices, but i have a problem with samsung devices.

https://www.b4x.com/android/forum/threads/ezcamera.22931/#content

The event _picturetaken dont work on some samsung devices.
The Creator of this lib @Roger Garstang leave the forum many time ago.

i have tested with native camera intent too and the result is null ever on some devices
B4X:
Sub OpenCam(Directory As String, PictureName As String)

    Dim i As Intent

    i.Initialize("android.media.action.IMAGE_CAPTURE", "")
    i.PutExtra("output", ParseUri("file://" & File.Combine(Directory, PictureName)))
          
    StartActivity(i)
          
End Sub

Sub ParseUri(FileName As String) As Object

    Dim r As Reflector

    Return r.RunStaticMethod("android.net.Uri", "parse", Array As Object(FileName), Array As String("java.lang.String"))

End Sub

the two codes are good and works fine and well on some devices.
but i really dont know why this dont work on some devices, the event _picturetaken dont is called or the intent return null

What the solution to this lib or this snipp code works fine on all devices?
 
Last edited:

DonManfred

Expert
Licensed User
Longtime User
ok, 3 months. know fix the bug? nop
Why the hell should I search for solutions for YOUR problem? In fact i did NOT search for an solution; why should i?

And then you ask ME For the solution? Are you on drugs or what let you think that I will do this for you?

i m only trying to fix a camera bug here on the forum
i respect this. Really! But posting others decompiled(!) code is THE BADDEST you can do!
And about asking ME for the solution then is another issue i already answered.
 
Upvote 0

Douglas Farias

Expert
Licensed User
Longtime User
Why the hell should I search for solutions for YOUR problem? In fact i did NOT search for an solution; why should i?
And then you ask ME For the solution? Are you on drugs or what let you think that I will do this for you?
But i dont tell u to fix the bug for me o_O, i make a only a question, u study 3 months, know fix? R:No , its true o_O

i respect this. Really! But posting others decompiled(!) code is THE BADDEST you can do!
And about asking ME for the solution then is another issue i already answered.
yes it is removed on the first post, the @Roger Garstang is not online here many time.
the erel have removed this, and no problem.

U made the posts later this is removed. and i really dont know why (IMPORTANT REPLYS)
https://www.b4x.com/android/forum/threads/camera-ez-result.50843/#post-318098
https://www.b4x.com/android/forum/threads/camera-ez-result.50843/#post-318106
https://www.b4x.com/android/forum/threads/camera-ez-result.50843/#post-318112

My question has already been answered. WILL NOT lose pace discussing useless answers .
Bye
 
Upvote 0
Top