How to configure an Android emulator for the Kindle Fire? - android

I want to configure an emulator to be compatible with the Kindle Fire, including its resolution. What do I have to change in the emulator settings (or elsewhere)?

From the Amazon Kindle Fire FAQ:
You should configure your emulator with the following characteristics:
Width: 600px
Height: 1024px
Abstracted LCD Density: 169
Target: Android 2.3.4 - API Level 10
RAM: 512 MB
*Note: The device will reserve 20px to display a soft key menu, making the effective portrait resolution 1004px high x 600px wide and the effective landscape resolution 580px high x 1024px wide.

Amazon recently released a new kindle fire add-on that you can easily install. It emulates the look and feel of the devices and can be set up in eclipse or from the command line. Check the documentation here for how to install and run it:
https://developer.amazon.com/sdk/fire/emulator-guide.html
Also because the kindle fire uses API level 10 it will not use your resource folders that use the swdp qualifier, so I have found using the -large-mdpi suffix for your relevant resource folders works well.

When creating or editing an AVD, you can select Skin: Built-in (and then choose some predefined screen type) or Resolution - that's where you can set any custom resolution. Is that what you need?

Amazon Kindle Fire Emulator just became available. Check it out at https://developer.amazon.com/public/resources/development-tools/ide-tools/tech-docs/01-setting-up-your-development-environment
It relies on Android SDK, of course.
Update: https://developer.amazon.com/docs/fire-tablets/ft-set-up-your-development-environment.html
As of Fire OS 5, the previously available Fire Tablet SDK add-on is deprecated; however, you can still develop apps for Fire tablets. Use the Android API 22 (Lollipop) features and the Amazon Mobile Apps SDK for your apps.

*Note: The device will reserve 20px to display a soft key menu, making the effective portrait resolution 1004px high x 600px wide and the effective landscape resolution 580px high x 1024px wide.
Be aware that this is true in FULL SCREEN mode only (i.e. hidden status bar). If you don't use FULL SCREEN mode that the available space is descreased by 25px on the top of the screen and about 50px (approximately) at the bottom of the screen.

Related

How to set a tablet device dimensions on a web browser

I am using flutter for developing an android app optimised (from frontend layout perspective) for a specific tablet (Galaxy tab A8).
Specs for tablet are -
Resolution: 1920x1080, 16:10 ratio (216 ppi density)
Dimensions: 9.72 inches x 6.37 inches
The issue is that I do not have the tablet physically and my machine is too low powered to run an emulator hence I need to rely on the chrome/web for development.
Now when I try to use the chrome dev tools and and plug in the resolution in the responsive settings, the screen I get has way more space than the actual device and hence I am not able to optimise specifically for that device.
I think the device dimensions has something to do with this issue but there is no option to set the dimensions for the browser window. How do I set the resolution in chrome dev tool so that it matches my device. Is there any conversion factor?

How can I emulate an XXHDPI device in Eclipse

I would like to emulate an XXHDPI device in Eclipse. I've updated everything via the SDK manager but there doesn't seem to be the tools available to do this.
Has anyone managed this, or do I need to wait for a further release?
Go to Window --> Android Virtual Device Manager --> Device Definitions --> New...
There you can create a new standard device, which you could per example call Nexus 10.
The size would be xlarge and density xxhdpi.
The screen size (in) 10 inch, and the resolution 2560x1600
Just play around with the rest for a bit, but they shouldn't matter to much for simply emulating the screen itself.
*forgot to put Camera's correctly, but you get the idea.

Android custom resolution 1920x1200

I'm building an Android app for Asus Transformer Infinity Pad.
I do not work with the Emulator, but directly with the tablet.
I was working with the maximal possible resolution of 1280x800 (which I've selected from the editor menu) and it looks good both in Eclipse graphical editor and on the tablet itself.
Apparently, I've found that tablet's resolution is HD 1920x1200. As I want to get most of the tablet's resolution, I'd like to work with 1920x1200 both in editor and on tablet.
1. How do I set up a custom resolution of 1920x1200 in Eclipse Graphic Editor (not emulator)?
2. How do I tell the tablet itself to work with 1920x1200 resolution?
Thanks
=====================
OS: Android 4.2.2
SDK: API 17
Tablet: Asus Transformer Infinity Pad TF700T
1. How do I set up a custom resolution of 1900x1200 in Eclipse?
Possible Duplicate:
In Eclipse if you Select the Android SDK and AVD Manager in the Window drop down menu.
You should be able to change the screen size of your Android Virtual
Device (Emulator) there.
2. How do I tell the tablet itself to work with 1900x1200 resolution?
I assume you mean 1920x1200, but I am still not completely sure what you are asking here. The default resolution of the Asus Transformer Infinity Pad TF700T is 1920x1200.
If you did indeed mean 1900x1200, and you want to force the resolution of the TF700T to be 1900x1200 than I am afraid your out of luck. I don't think this is possible, and I don't really see why you want this.
There are a few apps available that can change your screen resolution, if your device is rooted, but I am not sure if the TF700T is supported. Apps such as this one.
Short answer: everything's fine, don't worry about it.
The tablet will pretty much always use the default/native/max resolution. If everything looks good, then don't worry about it. It is using the full resolution anyway. You can't change the graphical layout editor to use custom resolutions as far as I know, so you don't have much choice there (at least for now). It sounds like working with the 1280x800 config gets you close enough that it looks good both in the editor and on the device, so really you don't need to change anything, and there'd be little benefit anyway unless you have some really complex layouts that simply don't fit into the smaller resolution screen (which again, would only be in the editor, the device would use the full resolution).
How do I set up a custom resolution of 1900x1200 in Eclipse?
No need to set any resolution for your eclipse
work with your normal x-large mdpi resolution
let say
x-large-mdpi 1280 x 800 =1
x-large-hdpi 1920 x 1200 =1.5
x-large-xdpi 2560 x 1600 =2
so when you supply graphics for mdpi,hdpi,xhdpi that will work prefectly.
so let design with your normal resolution in your emulator 1280x800
2 How do I tell the tablet itself to work with 1900x1200 resolution?
Google recently released a Device Availability Dialog in the Developer Console that allows you to select the particular device to install. link here
How to restrict android app to specific device make?
if you want only for tablet support you can do like this
<supports-screens
android:smallScreens="false"
android:normalScreens="false"
android:largeScreens="false"
android:xlargeScreens="true"
android:anyDensity="false" />

Preparing apps for the nexus 10

I am working on an android Audio Recording application, our app is currently designed to work on all android phones, the Nexus 7 and the Motorola Xoom tablets.
I was wondering if there are any guidelines or best practices to re-design/modify our app for Nexus 10. More specifically, any pointers on the below points would be really helpful:
UI guidelines to support the new 2560x1600 resolution
Android resource files related modifications (based on similar guidelines)
Any sample or open sources apps that have been modified to work on the nexus 10
Best practices creating and running a nexus 10 emulator since there is no such AVD device by default (screenshot below). Any thoughts on creating one, keeping the high resolution in mind.
As long as you have xhdpi assets, and layouts made for 10" tablets, you shouldn't have to do anything (except add a new xxhdpi launcher icon, as #Mattias mentioned).
To make a Nexus 10 AVD, navigate to Device Definitions:
Then, click New Device. Fill it out something like this:
Now it will be listed in the devices drop-down that you show above.
Regarding your second point, resources:
While the nexus 10 is a xhdpi device, it will use the launcher icon from xxhdpi "one bucket up" if available, so make sure to provide one as it will look much better/clearer/sharper. Reason is that there is room for a bigger icon on this device. Launcher icon size at xxhdpi is 144x144 pixels.
For reference see:
https://plus.google.com/118292708268361843293/posts/ePQya3KsTjW
The best way to emulate the Nexus 10 is to use AndroVM. I am currently running Android on it with the full Nexus 10 2560x1600 resolution and it fits onto my HD screen if I set AndroVM to use 320dpi.
Oh.. and it's VERY fast :-)
I personally use it over emulators and real hardware devices as it's extremely responsive and the deployment of the APK is lightning fast.
I do not contribute to the AndroVM project myself by the way, but it has speeded up my own development cycle considerably. In all development cycles, a developer waiting to see if their code tweaks work using an emulator or a hardware device adds considerable time overhead. I would thoroughly recommend using AndroVM regardless of screen size during normal code development.

Android Virtual Device Configuration for a 7 inch tablet in Android SDK 2.3.3

I want to create a Android Virtual device that resembles a 7 inch tablet running Android version 2.3.3. There is nothing similar to that available in the SDK and when I try various combinations in the AVD settings it doesnt work out. I am using LCD Pixel Height and Width of 1024 X 600.
How can I create a virtual device that resembles a 7 inch tablet in the landscape mode. Any help is greatly appreciated...
A great example of doing this can be found in the Amazon Kindle Fire FAQ:
https://developer.amazon.com/help/faq.html#KindleFire
We also recommend that you test your app on your own and submit an
update if you discover any problems. It is possible to configure a
standard Android emulator to simulate the Kindle Fire device platform.
You should configure your emulator with the following characteristics:
Width: 600px
Height: 1024px
Abstracted LCD Density: 169
Target: Android 2.3.4 - API Level 10
RAM: 512 MB
Android Virtual Device Manager
new (name: Tablet 7inTest or whatever you want but name must not
Exist in your emulators list)
ok very next thing you have to do is Select Resolution in Skin category type 1200x800
and click on Create AVD

Categories

Resources