How can I define a user screen when using ADT 21? - android

I updated my ADT to 21 last night, but then I found that in the ADT XML Overlay tool, I can't define a custom screen(1024*768, mdpi). Could you help me?

After Update your ADT to version 21.
In Older Version each time you have to set Add Custom Screen if you want custom Device Configurations.
In ADT21 Oversion you can get this thing done by
open AVD Manager, u can define your custom screen in "Device Definition"
Alternative (Much Easier approach)
in Newest Version you Don't Need to Set Custom Device
Configurations from the above Suggestion as much easier way is available for it. you >Just Have to Make Emulator With your Device
Configurations and after you will see those Configurations with
Emulator Name Inside Graphical Layout of XML
like after Created my Emulator of Nexus7 Emulator with Android 4.2 with Name as "Nexus7_Android_4.2" i will get this Device Configuration in Graphical Layout of xml automatically.
Below is the Screen Shot of it.
Hope it will Help you.

Related

android add device in Eclipse graphical layout

Like i can create custom AVD's i would like to create custom device preview to my graphical layout. Is it possible to do and how ?
Otherwise there are no other options(that i know) to preview custom devices without making AVD and viewing it in emulator, and that is very long process.
If you are on the current version of the SDK tools and ADT plugin for Eclipse, any custom device definitions that you create in the AVD Manager should show up in the preview toolbar drop-down list of device definitions.

How to emulate Nexus 4?

Is it possible to create an AVD to emulate the Nexus 4?
I am using Eclipse and I'm pretty sure I have updated all of the SDK tools etc, along with the 4.2 SDK/system Image etc.
However, when I open the AVD manager to add a new AVD, there no longer seems to be the ability to enter a custom resolution/density etc. There is a droplist containing several devices, but no Nexus 4, and no generic version with a resolution of 768x1200.
Am I just missing something obvious?
Thanks in advance for any help!
After Update your ADT to version 21.
In Older Version each time you have to set Add Custom Screen if you want custom Device Configurations as (if you want Nexus 4).
In ADT21 version you can get this thing done by
open AVD Manager, u can define your custom screen in "Device Definition"
Alternative (Much Easier approach)
in Newest Version you Don't Need to Set Custom Device
Configurations from the above Suggestion as much easier way is available for it. you >Just Have to Make Emulator With your Device
Configurations and after you will see those Configurations with
Emulator Name Inside Graphical Layout of XML
like after Created my Emulator of Nexus7 Emulator with Android 4.2 with Name as "Nexus7_Android_4.2" i will get this Device Configuration in Graphical Layout of xml automatically.
Below is the Screen Shot of it.
Hope it will Help you.

Is Adding custom android skins to virtual device missing in ADT Eclipse(Juno)

I'm using the Eclipse IDE (Juno 4.2) and the latest Android/Google ADK.
The ability to load/use custom skins seems to have disappeared. When creating a device in the AVD (android virtual device manager), it was possible to specify a skin from drop-down {skins had to be loaded into the sdk/android-##/skins}. The directory(s) are still there but adding skins does not allow/permit selecting it in any part of the virtual device creation process.
I'm running Eclipse Juno 4.2 on both a windows and mac os.
developer.android.com docs still show UI that for selecting custom skins.
Is is possible to still use custom skins is there now a restriction on skins?
The only way I've found to do this is to manually edit the config.ini file for your AVD. Change the field "skin_name" to the name of the skin you want to use and change "skin_path" to the path to the skin, relative to the sdk directory.
So if your skin was part of an SDK add-on, an AVD config.ini that looks like this:
skin_name=1280x800
skin_path=1280x800
Would be changed to:
skin_name=MyDevice
skin_path=add-ons\addon_device_vendor_api\skins\MyDevice
Or in your example:
skin_path=platforms\android-##\skins\MySkin
The Docs don't appear to have been updated for revision 21 of the ADT yet, so maybe they'll have more information in the future. I'd really like to know if there's a way to do this from within the Device Manager, but this is the only way I've found to do it.
After Update your ADT to version 21.
In Older Version each time you have to set Add Custom Screen if you want custom Device Configurations.
In ADT21 Oversion you can get this thing done by
open AVD Manager, u can define your custom screen in "Device Definition"
Alternative (Much Easier approach)
in Newest Version you Don't Need to Set Custom Device
Configurations from the above Suggestion as much easier way is available for it. you >Just Have to Make Emulator With your Device
Configurations and after you will see those Configurations with
Emulator Name Inside Graphical Layout of XML
like after Created my Emulator of Nexus7 Emulator with Android 4.2 with Name as "Nexus7_Android_4.2" i will get this Device Configuration in Graphical Layout of xml automatically.
Below is the Screen Shot of it.
Hope it will Help you.

How to load right layout in emulator?

I have two folder res/layout and res/layout-sw600dp. When I try to run my app in Tablet Emulator 7 inch (1024x600) I see on screen layout from res/layout. How to see another layout for tablet from layout-sw600dp in Emulator?
Double click the layout you want to open or choose a different setting from the drop down menus and the relevant layout will be loaded. e.g Nexus One, Nexus S etc
Add a custom layout in this menu if the defaults do not suit your devices.
To see these layouts at runtime you need to run your app on a device\emulator that matches the layout settings.
To be able to see both layouts, you will need to use different Android Virtual Devices (AVD's), or in other words, a different Emulator. The android documentation has a page dedicated to managing AVD's.
The android development team has provided a tool that you use to create AVD's called AVD Manager. I believe that you have used it, because to be on an emulator means that you have already created one!
You can find it in Eclipse in the following location:
Window -> AVD Manager
To actually see the different layouts between the different emulators, you will need to configure them differently, to accurately represent the device you want to target. You should be able to tweak the Hardware options to make your emulators behave differently. You can find a list of hardware options here.

How to test android application for different screen sized?

I have finished my application, but I have only 1 real device, and I need to test my application for different screen sizes. So, please, tell me, which emulator configurations should I use for diffrent screen sizes in order to I will be sure that my application will work on each configuration? Thank you.
there are more than 20 target devices are available in android developer website.
you can download few of them and load those devices in your emulator...
there is option in eclipse to select your target device before running your application...
Even by using the ADT plugin, in the layout editor, we can select the desired type of the phone, resolution, orientation and can check immediately with different types of resolutions..

Categories

Resources