I have no idea, since this is B4J and not B4A....
The Android app (B4A) has access to device primitives (camera, other sensors) ... But a web app (B4J) running in a web browser (ie. Chrome) on an Android device does not (that I know of). Would be nice, but that would eliminate the need for B4A. B4i.....
Find a way, let us know....
Browsers are (currently) limited into accessing the features and functionality of the underlying OS (Android, iOS, Win, etc...), with some exceptions.
Some day in the future, all we shall need is an intelligent browser - on any device (any make) - and YOU (and I) - the intelligent developer that can access all hardware features.
I'm sure
@Erel (and his partners/supporters) have been seriously investigating this for some time now.
We Shall Wait and See.... I never under-estimate the scope of what this man can achieve. Just look where he has taken B4 - Everything.
B4E....