0

I hear that android apps can now be played on a desktop in chrome os. The problem is that my app requires use of the accelerometer so it must be played in a hand held device. I don't want people downloading it on a desktop, getting mad because it doesn't work, then down-voting it. Thanks.

NJGUY
  • 2,045
  • 3
  • 23
  • 43
  • The answer here may also be useful: http://stackoverflow.com/questions/9510649/how-to-restrict-android-app-to-specific-device-make – BSMP Apr 03 '15 at 20:35
  • Just a reminder: you as the developer need to specifically upload your app to the Chrome Web Store to have it available on Chrome OS - there's nothing automatic about it. – ianhanniballake Apr 03 '15 at 21:54

1 Answers1

1

By Adding this in your manifest, google will take care of everything <uses-feature android:name="android.hardware.sensor.accelerometer" android:required="true" />

as said here http://developer.android.com/guide/topics/manifest/uses-feature-element.html

Google Play filters the applications that are visible to users, so that users can see and download only those applications that are compatible with their devices. One of the ways it filters applications is by feature compatibility.

Ajeet
  • 1,540
  • 1
  • 17
  • 30