question

JoeHz avatar image
JoeHz asked

Fire AVD Settings

The app I am writing works fine on a current 8" Fire Tablet (TargetedAPI level is 22) but not a 7" Fire. There's not enough screen real-estate on the smaller device.

I'd love to fix this, but I'm unable to recreate the problem in the AVD settings.

I suspect the instructions found at this link are out of date. I mean, 2560 x 1600? Really?

Does anyone have correct settings? Why does Amazon no longer provide device definitions anyway?

fire tabletandroid
10 |5000

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

Levon@Amazon avatar image
Levon@Amazon answered

Hi JoeHz,

Thanks for posting! I corrected your link, I believe it had 2 URLs combined, it should be:

https://developer.amazon.com/public/resources/development-tools/ide-tools/tech-docs/testing-without-an-amazon-device

As for testing options and specs for all Amazon devices, please see this article:

https://forums.developer.amazon.com/articles/48668/how-do-i-test-my-app-simulator-beta-test-physical.html

10 |5000

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

JoeHz avatar image
JoeHz answered

I am still finding behavior that does not match the device (I have less screen real-estate to use on the actual device than in my emulator settings)

Maybe I'm making the same mistake over and over, but I think I'm creating it accurately. Please sanity check me -- What is wrong with these settings when trying to emulate the current 7" device?

(Apologies for the double post. Whoever is moderating the general android forum doesn't seem to approve posts on weekends)

Name: Fire7
CPU/ABI: Intel Atom (x86)
Path: C:\Users\Joe\.android\avd\Fire7.avd
Target: default [Default] (API level 22)
Skin: 1024x600
hw.dPad: no
hw.accelerometer: no
hw.device.name: FIRE7
vm.heapSize: 128
skin.dynamic: yes
hw.device.manufacturer: User
hw.gps: no
image.androidVersion.api: 22
hw.audioInput: yes
image.sysdir.1: system-images\android-22\default\x86\
hw.keyboard.lid: yes
tag.id: default
hw.mainKeys: no
hw.lcd.density: 160
hw.device.hash2: MD5:51eca6f314e69554b7d9e81451749a9d
hw.ramSize: 1024
hw.trackBall: no
hw.battery: yes
hw.sdCard: no
tag.display: Default
hw.keyboard: yes
hw.sensors.proximity: no
disk.dataPartition.size: 200M
hw.sensors.orientation: no
avd.ini.encoding: UTF-8
hw.gpu.enabled: yes
10 |5000

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

Levon@Amazon avatar image
Levon@Amazon answered

Hi JoeHz,

Thanks for additional details. The resolution values you get back which seem smaller than the actual device's / hardware resolution, might be because your app's target or minimum SDK version is activating Screen Compatibility Mode. Normally, to resolve that, you can specify that your app supports any density screens, by adding this to your manifest:

<supports-screens android:anyDensity="true">

and then obtain the resolution with something like:

DisplayMetrics dm = new DisplayMetrics();
getWindowManager().getDefaultDisplay().getMetrics(dm);
String resolution = dm.widthPixels + "x" + m.heightPixels;

Otherwise, please share the relevant parts from your Android manifest, and post a snippet of code where you try to get the resolution. Thanks!

2 comments
10 |5000

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

JoeHz avatar image JoeHz commented ·

Levon,

I've added the line to my manifest and I am finding both the device and the emulator reporting 1024x552

The problem lies in a RelativeLayout that exists in the center of the screen, and it's relatively complex involving 3 radiogroups within it.

I'd like not to post my layout here. Can I send it to you directly because I think it's exposing a problem not on my end.

0 Likes 0 ·
Levon@Amazon avatar image Levon@Amazon ♦ commented ·

Hi JoeHz,

Let's communicate on the other (duplicate) thread. I replied there:

https://forums.developer.amazon.com/questions/57039/fire7-emulation-settings.html

0 Likes 0 ·