Detecting a Kindle Fire is part of the solution, but not the whole solution. The (current) last post in this thread seems to get to the core of "was this installed from the Amazon store" -- which may well be a Kindle Fire, or not!
<snip, slightly edited>
The correct way to determine if an app is installed via Appstore in production mode is by using the onSdkAvailable(boolean isSandboxMode)
method.
Documentation on onSdkAvailable(boolean isSandboxMode) method. Abstract:
- This callback is invoked once you register your
PurchasingObserver
with the PurchasingManager
- This method tells you if the Purchasing Framework is running in sandbox mode with test data, or in production mode with real data
- If your app is downloaded via the Amazon Client,
isSandboxMode
will return false
- The initiating method should be called within the
onStart()
lifecycle method
On registering your PurchaseObserver
, you get a async call back, onSdkAvailable(Boolean isSanboxMode)
. If the app is downloaded via the Amazon Client then isSandboxMode
will always return false. This code will work successfully in production mode, however in development/test environment, the isSandboxMode will always return true as the app is not downlaoded via the Amazon Client in test environment.