Fixed code for ctor static initialisers.
Tested a SensorManager rec in the closed project.