Available Android APIs

Source: Internet
Author: User

The Android mobile phone operating system has been well received by users. In particular, its open-source features have greatly attracted the favor of developers. Android is applicable to various types of mobile phones, from the lowest end to the highest end. The core Android API can be used on every mobile phone, but some APIs have some special applicability: this is the so-called Android optional API.

  • Android sharing feature source code
  • Android Core Module Content Overview
  • Android Browser
  • Android digital certificate specific application mechanism
  • Android Data Storage Access Mechanism

Android APIs are mainly available because a handheld device does not have to fully support such APIs, or even does not. For example, a handheld device may not have GPS or Wi-Fi hardware. Under this condition, the APIs of such functions exist, but do not work in the same way. For example, the Location API still exists on devices without GPS, but it is very likely that no function provider is installed, which means that such APIs cannot be effectively used.

Your application should be accessible or connected to a device that may not support your API, because your device has these upper-layer interfaces the classes ). Of course, nothing can be done during execution, or an exception is thrown. For details about what each API will do, refer to these API instructions. You should write your program to handle such problems as appropriate.

Wi-Fi API

Wi-Fi APIs provide applications with a means to communicate with the underlying wireless stacks with Wi-Fi network interfaces. Almost all request device information is available, including network connection speed, IP address, current status, and other available network information. Some available interactive operations include scanning, adding, saving, ending, and initiating a connection.

Wi-Fi API is in the android.net. wifi package.

Location-Based Services)

The location service allows the software to obtain the current location information of the mobile phone. This includes obtaining geographic locations from GPS satellites, but the relevant information is not limited to this. For example, other positioning systems may operate in the future, and the corresponding API interfaces will also be added to the system.

The Service Locating API is in the android. location package.

Multimedia APIMedia APIs)

Multimedia APIs are mainly used to play media files. This also includes support for audio, such as playing MP3 or other music files and game sound effects) and video, such as playing videos downloaded from the Internet), and support for "playing URI address" Note: URI is the unified resource identification address) mode-streaming media that is directly played on the network. Technically speaking, multimedia APIs are not Android APIs because they are always used. However, different hardware environments may have different coding/decoding hardware mechanisms, so it is "optional ".

Multimedia APIs are included in the android. media package.

OpenGL-based 3D Graphics 3D Graphics with OpenGL)

The main user interface framework of Android is a typical control-oriented class inheritance system. But don't confuse you with the surface, because below it is a very fast 2D and 3D graphics engine, and supports hardware acceleration. The OpenGL es api is used to access the 3D functions of the platform. Like multimedia APIs, OpenGL is not strictly "optional" because these Apis always exist and implement fixed functions. However, some devices may have hardware acceleration links, which may affect the performance of your applications.

The OpenGL API can be seen in android. opengl.

Google, like Sun, uses some high-end applications as optional APIs for mobile phone manufacturers to customize different hardware support modules. In JME, Sun was announced as JSR, and Google adopted the optional API.

I. Location-Based Services positioning service

The Android operating system supports GPS API-LBS and can receive satellite signals by integrating GPS chips. At least three satellites and atomic clocks in the GPS Global positioning system can be used to obtain the coordinate data of the current mobile phone, after conversion, it can be the specific location on the map. This error can be reduced to 10 meters on the mobile phone. You can see the famous SiRF star in Google's mobile development alliance. So in the future, the price of GPS integration will not be very expensive when gPhone is listed. At the same time, Google is developing a base station-based positioning technology-MyLocation can more quickly locate the location and the former GPS location takes about 1 minute compared to the base station location faster.

2. Media APIs Multimedia Interface

The Android platform integrates many audio and video decoders and related multimedia APIs. With these APIs, manufacturers can enable mobile phones to support MP3, MP4, and high-definition video playback processing.

3. 3D Graphics with OpenGL 3D Graphics processing OpenGL APIs

For game entertainment functions on the Android platform, such as supporting 3D games or application scenarios, 3D technology is required, mobile phone manufacturers integrate 3D acceleration graphics chips of different levels based on cell phone screens and positioning to enhance the entertainment of gPhone phones, according to a message from Qualcomm, the latest display chip will easily surpass Sony PS3 in gPhone.

4. Low-Level Hardware Access

This function is mainly used to control the underlying operations of mobile phones. Due to the design of underlying hardware operations, it will be customized by various mobile phone hardware manufacturers to support operation management of different devices, such as BlueTooth and Wifi wireless network support.

I believe you have learned about the technical functions of gPhone through this article. When developing software or games, you can also learn about the high scalability of the Android platform and help mobile phone hardware manufacturers control costs.

The preceding section describes the available Android APIs.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.