0

I have an app and want to it make available only for Samsung devices. With the device availability dialog, I must exclude each device. Is there any other way to do that?

Kara
  • 6,115
  • 16
  • 50
  • 57
  • 4
    Look at this post: http://stackoverflow.com/questions/9510649/how-to-restrict-android-app-to-specific-device-make – roky Nov 06 '12 at 15:36
  • 1
    Short of toggling devices off individually, there is no other way to restrict distribution to a single manufacturer via the Play Store. What you want is not exactly a common pattern. – CommonsWare Nov 06 '12 at 17:15

3 Answers3

1

Use String str = android.os.Build.MANUFACTURER; to get device name or android.os.Build.MODEL. Validate result and show any Dialog box on false, after - close your activity.

Other way, configure market publisher to block other devices

Maxim Shoustin
  • 77,483
  • 27
  • 203
  • 225
  • Configuring market publisher is a good idea but there are more than 1500 devices available for my application and it is very unconfortable to exclude all devices – user1803576 Nov 06 '12 at 15:51
0

Take a look at this page It contains almost everything you need to know about the users device.

Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338
0
String mf = android.os.Build.MANUFACTURER;

if (mf.equals("samsung")) {
    //device is samsung
} else {
    //device not samsung
}
Dariusz Bacinski
  • 8,324
  • 9
  • 38
  • 47
user1475122
  • 105
  • 1
  • 9