General Question about accessing Android Hardware
Posted: Mon Jan 01, 2018 9:36 pm
Hello, and a happy new everybody!
Since I managed it to set up the android development environment, a couple of questions came up concerning the control of the Android hardware and general about LiveCode apps.
I decided to list this questions all in one single post, not to spam the forum.
1.Is it possible, and if yes, how, to switch the camera flash of the phone on and off?
2.How exactly do the Requirements and Restrictions and Application Permissions in the Standalone Application settings work? What are these items exactly?
3.I have an app that says it uses a light sensor (it measures Light in Lux). Is it possible to access this sensor with LC or is this a workaround with the camera?
4.I also have an app that seems to use the Rotation sensor of my device. However, mobileSensorAvailable("rotation rate") returns false. I don't really even know if my mobile has got such a sensor. I could also think of a workaround that takes the acceleration sensor and performs some triangulation to get the angle relative to gravity
5.I have the fullscreenmode set to "exactFit", which works pretty well for me. Except for circular and square shapes, such as the analogue clock widget.
How can I make it circular again? (I tried "set the width of me to the height of me", but that doesn't work)
Thank you band have a happy new year!
Since I managed it to set up the android development environment, a couple of questions came up concerning the control of the Android hardware and general about LiveCode apps.
I decided to list this questions all in one single post, not to spam the forum.
1.Is it possible, and if yes, how, to switch the camera flash of the phone on and off?
2.How exactly do the Requirements and Restrictions and Application Permissions in the Standalone Application settings work? What are these items exactly?
3.I have an app that says it uses a light sensor (it measures Light in Lux). Is it possible to access this sensor with LC or is this a workaround with the camera?
4.I also have an app that seems to use the Rotation sensor of my device. However, mobileSensorAvailable("rotation rate") returns false. I don't really even know if my mobile has got such a sensor. I could also think of a workaround that takes the acceleration sensor and performs some triangulation to get the angle relative to gravity
5.I have the fullscreenmode set to "exactFit", which works pretty well for me. Except for circular and square shapes, such as the analogue clock widget.
How can I make it circular again? (I tried "set the width of me to the height of me", but that doesn't work)
Thank you band have a happy new year!