question

Nimrod Gutman avatar image
Nimrod Gutman asked

Supporting com.amazon.device.home both on Fire and on regular androids

Hey guys, I've implemented a cool App Widget for my app with "peek"able list entries. The problem is that now my app can't run on any device without the com.amazon.device.home (getting shared library missing error). I tried using amazon:enable-feature instead of combined with Class.forName(..) but HomeManager is not found using this method. Is there a way to support the Fire Phone AND regular android devices (maybe Kindles too)? Best regards, Nimrod
fire phone
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

lonebuyer avatar image
lonebuyer answered
> The problem is that now my app can't run on any > device without the com.amazon.device.home (getting > shared library missing error). For this error, change your manifest use-library to have an attribute-value of required="false" You will probably also need to add in some feature detection before acting with HomeManager using PackageManager.hasSystemFeature() and PackageManager.getSystemAvailableFeatures().  Home - com.amazon.software.home API - Feature string EAC - com.amazon.software.eac Euclid - com.amazon.software.euclid HeadTracking - com.amazon.software.headtracking AND com.amazon.software.headtracking.filter MotionGesture - com.amazon.software.motiongestures HTHs!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Kevin@Amazon avatar image
Kevin@Amazon answered
Pete has some excellent suggestions here, and all will work. You might also take a look at the following post for more options as well, such as using multiple binaries: https://forums.developer.amazon.com/forums/thread.jspa?threadID=3744&tstart=0
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.