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?
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.
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 , i make a only a question, u study 3 months, know fix? R:No , its true
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.