question

androiddev1234 avatar image
androiddev1234 asked

In-App Product Detail - Implementation Error

Hi, While implementing the "In-App Product Detail", I am getting null pointer exception (attached log.txt). Below are the steps followed: 1. Followed instructions available at: https://developer.amazon.com/sdk/mobile-associates/in-app-detail-preview-impl.html 2. Have installed amazon apps and app tester on actual device. 3. In Manifest File, ENABLE TESTING is set to true 4. Copied the JSON file to /mnt/sdcard/amazon.sdktester.product.json 5. Validated the JSON file using the utility Any help in this regard will be really appreciated. Code and Logs attached with this post. Thanks in advance.
mobile associates
10 |5000

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

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Androiddev1234, Thank you for writing to us. The problem is that the local listener hasn't been set. In your MainAcitivty.onResume(), uncomment the following line should fix the issue. //globalListener.setLocalListener(this);
10 |5000

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

androiddev1234 avatar image
androiddev1234 answered
Thanks for the advice. Made changes as per the suggestion but still it is not working. I now get the following: 11-13 21:48:46.570: W/ResourceType(18646): No package identifier when getting value for resource number 0x00000000 11-13 21:48:46.580: E/AmazonMobileAssociates com.amazon.device.associates.c(18646): Error displaying product detail popover Thanks AD
10 |5000

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

Eric@Amazon avatar image
Eric@Amazon answered
Hi androiddev1234, Did you copy the "drawable" folder from the MAA SDK into your application's "res" folder? Please note that there is a typo in the folder name, it should be "drawable" instead of "drawble". Thanks
10 |5000

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

androiddev1234 avatar image
androiddev1234 answered
This solution worked. After copying the images, it worked for me.
10 |5000

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