background preloader


The Android SDK includes a mobile device emulator — a virtual mobile device that runs on your computer. The emulator lets you develop and test Android applications without using a physical device. This document is a reference to the available command line options and the keyboard mapping to device keys. For a complete guide to using the Android Emulator, see Using the Android Emulator. Keyboard Commands Table 1 summarizes the mappings between the emulator keys and the keys of your keyboard. Table 1. Command Line Parameters The emulator supports a variety of options that you can specify when launching the emulator, to control its appearance or behavior. emulator -avd <avd_name> [-<option> [<value>]] ... Table 2. s Related:  Android Development

Androidarium Supporting Multiple Screens Android runs on a variety of devices that offer different screen sizes and densities. For applications, the Android system provides a consistent development environment across devices and handles most of the work to adjust each application's user interface to the screen on which it is displayed. At the same time, the system provides APIs that allow you to control your application's UI for specific screen sizes and densities, in order to optimize your UI design for different screen configurations. Although the system performs scaling and resizing to make your application work on different screens, you should make the effort to optimize your application for different screen sizes and densities. By following the practices described in this document, you can create an application that displays properly and provides an optimized user experience on all supported screen configurations, using a single .apk file. Overview of Screens Support Terms and concepts Screen size Screen density Orientation

Mobile Emulators DotMobi strongly encourages the use of mobile phone emulators during the development of any mobile site since they allow you to get a rough idea of how the site will look without having to purchase multiple devices or incurring data charges. Be sure to read our guide to mobile emulators here. The following emulators are very usful for testing mobile applications without incurring data charges.iPhone Simulator - bundled as part of the iPhone SDK. You'll need to purchase a Mac to run the SDKAndroid Emulator - the Android SDK includes a mobile device emulator. Using the Android Emulator The Android SDK includes a virtual mobile device emulator that runs on your computer. The emulator lets you prototype, develop and test Android applications without using a physical device. The Android emulator mimics all of the hardware and software features of a typical mobile device, except that it cannot place actual phone calls. To let you model and test your application more easily, the emulator utilizes Android Virtual Device (AVD) configurations. The emulator also includes a variety of debug capabilities, such as a console from which you can log kernel output, simulate application interrupts (such as arriving SMS messages or phone calls), and simulate latency effects and dropouts on the data network. Overview The Android emulator is an application that provides a virtual mobile device on which you can run your Android applications. The Android emulator supports many hardware features likely to be found on mobile devices, including: Android Virtual Devices and the Emulator

HONGKONGEEK.COM <uses-sdk> Google Play Filtering Google Play uses the <uses-sdk> attributes declared in your app manifest to filter your app from devices that do not meet it's platform version requirements. Before setting these attributes, make sure that you understand Google Play filters. syntax: contained in: description: Lets you express an application's compatibility with one or more versions of the Android platform, by means of an API Level integer. Despite its name, this element is used to specify the API Level, not the version number of the SDK (software development kit) or Android platform. Also read the document about Versioning Your Applications. attributes: android:minSdkVersion An integer designating the minimum API Level required for the application to run. Caution: If you do not declare this attribute, the system assumes a default value of "1", which indicates that your application is compatible with all versions of Android. android:targetSdkVersion Introduced in: API Level 4 android:maxSdkVersion API Level 1

A Guide to Mobile Emulators In a previous article, I put forward a three-point plan for testing mobile Web sites. One of the points involved the use of emulators for first-pass device testing. This article concentrates on configuring emulators for mobile site testing (it also highlights emulators that can be used to test mobile applications too). It outlines the different types of emulator available, the best ones to use, and the various ways in which they can be used. For the uninitiated, an emulator is a software program that aims to replicate the functions of a specific piece of hardware or software. About Device-Specific Testing Desktop Web developers have it relatively easy – build in support for four or five browsers, and it’s job done. The simple answer is – you can’t. Types of Mobile Emulator Mobile emulators fall into three main categories: Device emulators - These are generally provided by device manufacturers and simulate the actual device. Problems with Emulators Popular Emulators Opera MiniOpenwave

JDK 7 Support in the Android SDK? - Google Groupes I am still catching up with the Google I|O conference videos. I just watched the Android Fireside Chat one. The question came up regarding JDK 7 support, and, if I understood correctly, Xav indicated that such support already existed, as of R21 (or R21.0.2 or something like that -- tough to hear that bit when watching the video on a plane...). Did I understand that correctly? If yes, are there any SDK/ADT-specific instructions for getting this to work? Is this something you want people using? Thanks!