Android Question PhoneSensors and PhoneOrientation used in google playstore

appie21

Active Member
Licensed User
Longtime User
Hello
Sorry for my bad English first.

I working on a game and it is nearly finished

Now i make plans to put it in the google playstore

THe game used the light sensor (pSensor As PhoneSensors)

pSensor.StartListening("LightEvent")= True Then
Log("light sensor supported")
End If

and the Awake As PhoneWakeState
and Orientation As PhoneOrientation

Without that sensors inside the phone the game will not work.

How can i google play let know that only phones who have these sensors inside can download it? (and show only the game in the playstore if the phone have the sensors?)
Or will B4a it handle for me?
Let me know
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
Good question. Most of the required features are derived automatically from the permissions. In this case there is no special permission so you need to explicitly add this line to the manifest editor:
B4X:
AddManifestText(<uses-feature android:name="android.hardware.sensor.light" android:required="true"/>)
 
Upvote 0
Top