Sniper
Sniper

Reputation: 2452

Maintain Single Source or apk for Nook and Kindle

I have to maintain my application in Android Play, Kindle and Nook Stores. I am using camera option in my application. As there is no camera for Nook I have to hide camera option each time when I am publishing to market. So that I have to take two different apks (One for Play store, Kindle and another for Nook.). Is there any way to have single apk to be published in all the three stores. This will save my time a lot.

Thanks in Advance.

Upvotes: 0

Views: 118

Answers (2)

Sniper
Sniper

Reputation: 2452

Finally I made it by finding the device Manufacturer for Nook using Build.MANUFACTURER. The manufacturer for Nook is "Foxconn".

Upvotes: 0

Waynn Lue
Waynn Lue

Reputation: 11385

The easiest way is to detect whether the device has a camera now.

You can use PackageManager#hasSystemFeature(String) and pass PackageManager.FEATURE_CAMERA as the argument.

Upvotes: 0

Related Questions