How to enable sensor simulator in Android?

Intent intent = new Intent(Intent.ACTION_VIEW, 
Hardware.Preferences.CONTENT_URI); 
startActivity(intent);

when I give the above code to enable the sensors .... they show errors .... @ Hardware.Preferences.CONTENT_URI); ... say create class Hardware ... plz help ... I'm new to android ...

+3
source share
1 answer

You cannot enable sensors in the simulator. The direct answer. You can use the sensor simulator tool.

http://code.google.com/p/openintents/wiki/SensorSimulator

, REAL android. . .

+8

Source: https://habr.com/ru/post/1718079/


All Articles