2 ms·
Note that in PilBox you can also directly call the standard Android API, and use the REPL of course. Taking a picture, for example, needs only (android~tak
by Regenaxer 10y ago
Note that in PilBox you can also directly call the standard Android API, and use
the REPL of course.
Taking a picture, for example, needs only
(android~takePicture (tmp "img")
'((Intent)
(... do something with the image) ) )
The function 'takePicture' is in "lib/android.l":
(de takePicture (Dst Fun)
(startActivityForResult Fun
"android.media.action.IMAGE_CAPTURE"
"output" (fileUri Dst) ) )