Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I detect Amazon tablet and others?

Tags:

android

device

I have been using Google service in my project, but Amazon tablets don't support Google service so that if I want to publish app to Amazon Store, I need to remove Google service. I don't want to divide project to "For Google Play" and "For Amazon Store".
I get device name using android.os.Build.MODEL but I'm not sure it's safe?
Can I detect Amazon tablets in project?

if(is Amazon) {
    //do something
}
else {
    //do something
}
like image 872
henry4343 Avatar asked Jan 13 '14 08:01

henry4343


People also ask

Can an Amazon tablet be tracked?

A Kindle can be tracked when lost only if it runs Fire OS 3.2. 5 or subsequent Fire operating systems. This means that only certain Kindle Fire devices can be tracked, and most Paperwhite and classic Kindle e-readers cannot be traced. However, you can deregister your device remotely.

How can I tell which Amazon Fire tablet I have?

Discover what Fire tablet model you own by checking your device settings. Open the Settings menu. Select Device Options. Your device model is listed under Device Model or About Fire Tablet.

How do I know if my Amazon tablet is stolen?

Go to Amazon's Manage Content and Devices page and log in to your account. Click the 'Devices' tab. Select your missing Fire Tablet from the devices. The device's serial number should be written at the bottom of the page.

How do I see device activity on Amazon?

Open the Alexa app . Open More , then select See More. Select Alexa Together. Select View All Activity.


1 Answers

Yes, you can use Build.MODEL and Build.MANUFACTURER.

As per Amazon documentation, Build.MANUFACTURER always returns "Amazon", and Build.MODEL returns different strings, depending on the model.

If you don't need to distinguish between each Amazon tablet, you can just use:

if (Build.MANUFACTURER.equals("Amazon")) {
    //we have an Amazon tablet
}
else {
    //some other device
}

If you need to know exactly which device it is, you can use Build.MODEL, for example:

  • Kindle Fire HDX 8.9 (3rd Gen)

    if (Build.MODEL.equals("KFAPWI")) {
        //WiFi version
    }
    else if (Build.MODEL.equals("KFAPWA")) {
        //WAN version
    }
    

    etc.

like image 177
Melquiades Avatar answered Oct 21 '22 13:10

Melquiades