Issue

When you try to launch a custom viewer on a Kindle Fire, the application crashes with the following error:

"The application <name of app> has stopped unexpectedly. Please try again."

The button Force Close appears.

Solution 1: Use Amazon DRM on your .apk

Solution 2: Use SandboxData.json file

Connect your fire to a computer via USB and copy the following file to the root directory (the first or top-most directory):

InAppSDK-SandboxData.json

Additional information

A .apk file that has not yet been wrapped as part of the Google developer binary submission process is designed to run in sandbox mode. To run applications in sandbox mode, the above mentioned .json file must be present in the root directory of the device. 

If you have any problems downloading the attached file, you can copy the text below into a plain text editor, and save it as "InAppSDK-SandboxData.json"

{
    "itemDataResponses": {
        "amazon.1": {
            "itemType": "ENTITLED",
            "price": "$1.99",
            "title": "Map Pack",
            "description": "More levels!",
            "smallIconUrl": "http://some/image.jpg"
        }
    },
    "purchaseResponses": {
        "amazon.1": {
            "userId": "someUser",
            "receipt": {
                "itemType": "ENTITLED",
                "token": "amazon1Token"
            }
        }
    },
    "purchaseUpdatesResponses": {
        "BEGINNING": {
            "userId": "someUser",
            "receipts": [
                {
                    "itemType": "ENTITLED",
                    "sku": "com.adobe.sample.20111031",
                    "token": "amazon4Token"
                }
            ],
            "revokedSkus": [ ],
            "isMore": true,
            "offset": "later"
        }
    },
    "getUserIdResponse":
    {
        "userId":"someUser"
    }
}

 

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy