Camera Intent Example, anyone??
Can anybody post a functional Camera Intent Example written in B4A? :sign0163:
- I need to call a Camera app via intent, ie:
Dim camintent As Intent
camintent.Initialize("android.media.action.IMAGE_CAPTURE","")
StartActivity(camintent)
- and then be able to retrieve that picture in my app either as data or a file path
I do love the Advanced Camera Library however for my purposes it's an overkill and the only way to get a small resolution image from it is to re-size it "manually" after taking the picture because no matter what you try, the following:
Sub Camera1_PictureTaken (Data() As Byte)
will always return the MAX resolution possible on your camera (in my case 5Mpix).
Re-sizing it from 3MB to under 100KB takes too long and I can't have that in my app. Sometimes it takes longer then usual and the phone starts vibrating and pops up a message that application froze (=bad)
I just want to switch quickly to the existing Camera app via intent and grab that tiny picture it produces: 192x256 (or whatever), I don't care if it's of low quality or not.
Any help here would be greatly appreciated.:sign0163: