LG Majestic LS LG Marquee LS LG Optimus Hub E Motorola Electrify. LG Esteem MS Sony Ericsson Xperia Play 4G. Motorola Droid Bionic XT Acer Liquid mini Ferrari. Huawei Vision U LG Enlighten VS LG Optimus Sol E Motorola Milestone 3 XT Motorola Spice XT. Motorola Fire XT. Motorola Photon 4G MB T-Mobile myTouch 4G Slide.
LG Optimus Link P Device manufacturers may choose whether to include the Open Accessory Library in their products or exclude it. The library is forward-compatible with Android 3. In most areas, you can use the same techniques and APIs. However, developing for the Open Accessory Library on Android 2.
An Android-powered device running Android 2. The library enables the Android-powered device to function as a peripheral only, with the connected accessory functioning as USB host through UsbAccessory.
To develop apps using the Open Accessory Library, you need:. For a full discussion of how to develop applications that interact with USB accessories, please see the related developer documentation. Additionally, developers can request filtering on Google Play, such that their applications are not available to users whose devices do not provide the appropriate accessory support.
To request filtering, add the element below to the application manifest:. Of particular interest to game developers are:. Applications that use native code can now receive and process input and sensor events directly in their native code, which dramatically improves efficiency and responsiveness.
Native libraries exposed by the platform let applications handle the same types of input events as those available through the framework. Gyroscope and other new sensors, for improved 3D motion processing. Applications can use the new sensors in combination with any other sensors available on the device, to track three-dimensional device motion and orientation change with high precision and accuracy. For example, a game application could use readings from a gyroscope and accelerometer on the device to recognize complex user gestures and motions, such as tilt, spin, thrust, and slice.
The platform provides a software implementation of Khronos OpenSL ES , a standard API that gives applications access to powerful audio controls and effects from native code.
Applications can use the API to manage audio devices and control audio input, output, and processing directly from native code. The platform provides an interface to its Khronos EGL library, which lets applications manage graphics contexts and create and manage OpenGL ES textures and surfaces from native code. Native access to Activity lifecycle, window management.
Native applications can declare a new type of Activity class, NativeActivity whose lifecycle callbacks are implemented directly in native code. The NativeActivity and its underlying native code run in the system just as do other Activities — they run in the application's system process and execute on the application's main UI thread, and they receive the same lifecycle callbacks as do other Activities.
Through the API, applications can obtain a native window object associated with a framework Surface object and interact with it directly in native code. If the assets are compressed, the platform does streaming decompression as the application reads the asset data. There is no longer a limit on the size of compressed.
Note that although platform support for OBB is available in Android 2. Robust native development environment. The Android NDK r5 or higher provides a complete set of tools, toolchains, and libraries for developing applications that use the rich native environment offered by the Android 2. Developers can now add SIP-based internet telephony features to their applications.
Support for the platform's SIP and internet calling features on specific devices is determined by their manufacturers and associated carriers. The platform's support for Near Field Communications NFC lets developers get started creating a whole new class of applications for Android.
Developers can create new applications that offer proximity-based information and services to users, organizations, merchants, and advertisers. When a tag of interest is collected, applications can respond to the tag, read messages from it, and then store the messages, prompting the user as needed.
0コメント