question

noteload avatar image
noteload asked

SearchRequest then SearchResponse status return NOT_SUPPORTED

SearchRequest searchRequest = new SearchRequest("Electronics", "kindle"); try { AssociatesAPI.getShoppingService().search(searchRequest); } catch (NoListenerException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (NotInitializedException e) { // TODO Auto-generated catch block e.printStackTrace(); } onSearchResponse return status NOT_SUPPORTED some thign wrong please tell me. my appmanifest.xml
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.

1 Answer

Sujoy@Amazon avatar image
Sujoy@Amazon answered
Hi Noteload, In development mode, you should be able to search items from the list of products defined in json file injected in sdcard only on devices having Amazon App Tester installed. The manifest you pasted looks fine. Please make sure that you have Amazon App Tester installed in the target device. Below is the document to refer for testing MAA : https://developer.amazon.com/sdk/mobile-associates/testing.html Please note, ShoppingService.searchByID(..) and ShoppingService.search(..) methods are optional. In live mode, these methods are available only if: 1. Your app is distributed through Amazon 2. Amazon Appstore for Android is installed on the device 3. User is logged in to Amazon Appstore for Android 4. User's preferred marketplace is US You should rely on ServiceStatusResponse.canSearch() methods to determine if these methods is avialble for use. Also note that ShoppingService.searchByID(..) and ShoppingService.search(..) supports physical products. Digital products like mp3, ebooks etc. are NOT supported.
10 |5000

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