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?
Asked
Active
Viewed 1,354 times
0
-
4Look at this post: http://stackoverflow.com/questions/9510649/how-to-restrict-android-app-to-specific-device-make – roky Nov 06 '12 at 15:36
-
1Short 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 Answers
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
-
1In fact Build.MANUFACTURER for Samsung is "samsung" with lower-case "s" so the code would not work.. – Petr Nalevka Apr 03 '17 at 14:17