my project web based app , loaded android webview. want call camera clicking 1 button on web page, catch image , set web page.
currently use mediastore.action_image_capture
catch picture camera. , convert image base64 string (myimgstr
). these steps fine.
but when use webview.loadurl("javascript:handlecameraresult('+ myimgstr +')")
send image string web page, there null in web page.
do guys know issue , how fix it? thanks!
finally i've got answer. is: base64 string received mediastore.action_image_capture
contains "\n" block entire string inserted through javascript call.
my solution remove "\n" call wevview.loadurl. works now.
Comments
Post a Comment