question

rastapopoulos avatar image
rastapopoulos asked

Installing Web App Tester (Eclipse / Android SDK / Ubuntu)

Spent 2 days b4 to get Amazon Web App Tester working on an emulator. Here is what I did: # cd to your android sdk's tools, create an AVD (amazon) => it should be 4.1.2 and have an SD card cd ~/android-sdks/tools android create avd --force -n amazon -t 16 -c 2G # start the emulator emulator -avd amazon & # install Amazon Appstore using the Browser # install Amazon Web Tester ... if you can! But if not: ------------ I never suceeded at installing the "Amazon Web App Tester" on the emulator. If you experience the same problem, the workaround is to get the apk from a real Android device. That is, - get the Android phone of a friend of yours, then, on the device, - install Amazon Appstore from Amazon web site - install the Amazon Web Tester from the Amazon Store - install AirDroid from the Android Market - download the "Web App Tester.apk" from the device to your computer via AirDroid Then install it in the emulator: on your computer cd ~/android-sdks/platform-tools && cp ~/Downloads/Web\ App\ Tester.apk Tester.apk # the emulator is running, check with adb devices adb install Tester.apk -------------- About JSON Url's (vs the App URL) - create the amazon.testerurls.json , as explained in the doc - triple check that the json syntax is OK!!!! - copy it to the emulator (*not* at the system files root, like it is said, *but * to /mnt/sdcard) cd ~/android-sdks/platform-tools adb shell mount -o remount rw exit adb push amazon.testerurls.json /mnt/sdcard/amazon.testerurls.json That should populate the JSON Url list. I strongly suggest you do "adb logcat" then start the tester, and read what's going'on...
web apps
10 |5000 characters needed characters left characters exceeded

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
This thread is moved to the right category. We will answer this shortly.
10 |5000 characters needed characters left characters exceeded

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 Rastapopoulos, Thank you for sharing your experience on Web App Tester installation in Amazon emulator. Can you please let us know what is the exact issue you faced during "download and install" from Amazon App store in the emulators?
10 |5000 characters needed characters left characters exceeded

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

L. Wang avatar image
L. Wang answered
The problem is that there is simply no way to test webapp on emulator. it's not possible to install "Web app tester" app. then how could we take screenshots without an actual device?
10 |5000 characters needed characters left characters exceeded

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 All, Currently we do not support running the web app tester in an emulator, the primary reason is that we don't want to setup wrong expectations in terms of app behavior, specifically around performance. We have documentation on how to take screenshots from a device, mac and windows desktop here: https://developer.amazon.com/sdk/webapps/screenshots.html We have a query for you.What does constitute the barrier to getting an device? Aside from screenshots, how could you test a production app adequately without a device?
10 |5000 characters needed characters left characters exceeded

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

L. Wang avatar image
L. Wang answered
it's the money. i think most people already have an ipad/iphone, then perhaps android. kindle fire is a good product in all means but to buy an kindle just for testing, taking screenshots is just irrational.
10 |5000 characters needed characters left characters exceeded

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

Hadi@Amazon avatar image
Hadi@Amazon answered
If you are interested in getting a screenshot for your web app, another option is to use the Chrome DevTools: https://developers.google.com/chrome-developer-tools/docs/mobile-emulation. You can refer to https://developer.amazon.com/sdk/fire/screen-layout.html to find the dimensions that will match one of the Kindle Fire devices. This should work, but as it is not an emulator the image may not exactly replicate what it would look like on the device.
10 |5000 characters needed characters left characters exceeded

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 Robin, Thank you for bringing this in to our notice. I have forwarded this issue to the concerned team. Meanwhile, you can use DDMS to take screen shots for your web app and submit. https://developer.amazon.com/sdk/webapps/screenshots.html#AllTablets
10 |5000 characters needed characters left characters exceeded

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
Ok. I clarified the query and tested on device. To take a screenshot, press and hold BOTH the "Volume Down" and "Power" buttons at the same time. It would not work if you hold down one button then press the other one. If the volume slider appears, it means you didn't press the "Power" button at the same time. Wait for the volume slider to disappear then try again.
10 |5000 characters needed characters left characters exceeded

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