Yeah, thanks, now working.,but i have one doubt, if we do the steps, like, Project- properties- Android-Google Apis, then the project will be in what version?, i need in version 2.3. How is it possible? – Vishnu Sep 3 '12 at 10:43. Android Studio download archives This page provides an archive of Android Studio releases. However, we recommend that you download the latest stable version or the latest preview version.
API Level:10
Android 2.3.3 (GINGERBREAD_MR1
)is a small feature release that adds several improvementsand APIs to the Android 2.3 platform.
For developers, the Android 2.3.3 platform is available as adownloadable component for the Android SDK. The downloadable platform includesan Android library and system image, as well as a set of emulator skins andmore. To get started developing or testing against Android 2.3.3,use the Android SDK Manager to download the platform into your SDK.
The sections below provide a technical overview of what's new for developersin 2.3.3, including new features and changes in the frameworkAPI since the previous version.
Android 2.3.3 provides improved and extended support for NFC, to allowapplications to interact with more types of tags in new ways.
A new, comprehensive set of APIs give applications read and write accessto a wider range of standard tag technologies, including:
The platform also provides a limited peer-to-peer communication protocoland API. Foreground Activities can use the API to register an NDEFmessage that will get pushed to other NFC devices when they connect.
Advanced tag dispatching now gives applications more control over how andwhen they are launched, when an NFC tag is discovered. Previously, the platformused a single-step intent dispatch to notify interested applications that a tagwas discovered. The platform now uses a four-step process that enables theforeground application to take control of a tag event before it is passed to anyother applications (android.nfc.NfcAdapter.enableForegroundDispatch()
).The new dispatch process also lets apps listen for specific tag content andtag technologies, based on two new intent actions —android.nfc.action.NDEF_DISCOVERED
andandroid.nfc.action.TECH_DISCOVERED
.
The NFC API is available in the android.nfc
and android.nfc.tech
packages. The key classes are:
NfcAdapter
, which represents the NFC hardware on the device.NdefMessage
, which represents an NDEF data message,the standard format in which 'records' carrying data are transmitted betweendevices and tags. An NDEF message certain many NDEF records of different types.Applications can receive these messages from NDEF_DISCOVERED
,TECH_DISCOVERED
, orTAG_DISCOVERED
Intents.NdefRecord
, delivered in anNdefMessage
, which describes the type of data being sharedand carries the data itself.Tag
, which represents a tag scanned by the device.Multiple types of tags are supported, based on the underlying tagtechnology.TagTechnology
, an interface that gives applicationsaccess to tag properties and I/O operations based on the technologies presentin the tag. For a full list of tag technologies supported in Android 2.3.3, seeandroid.nfc.tech
.NFC communication relies on wireless technology in the device hardware, andis not present in all Android devices. Android devices that do not supportNFC will return a null object whengetDefaultAdapter(Context)
is called, andcontext.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)
will return false
. The NFC API is always present, however, regardless ofunderlying hardware support.
To use the NFC API, applications must request permission from the user bydeclaring <uses-permissionandroid:name='android.permission.NFC'>
in their manifest files.
Additionally, developers can request filtering on Google Play, such thattheir applications are not discoverable to users whose devices do not supportNFC. To request filtering, add<uses-feature android:name='android.hardware.nfc'android:required='true'>
to the application's manifest.
For more information, read the NFC developer guide.
Android 2.3.3 adds platform and API support for Bluetooth nonsecure socketconnections. This lets applications communicate with simple devices that may notoffer a UI for authentication. See createInsecureRfcommSocketToServiceRecord(java.util.UUID)
and listenUsingInsecureRfcommWithServiceRecord(java.lang.String, java.util.UUID)
for more information.
BitmapRegionDecoder
class lets applicationsdecode a rectangle region from an image. The API is particularly useful when anoriginal image is large and and the application only need parts of the image.inPreferQualityOverSpeed
field in BitmapFactory.Options
allows applications to use a more accuratebut slightly slower IDCT method in JPEG decode. This in turn improves thequality of the reconstructed image.MediaMetadataRetriever
class provides a unifiedinterface for retrieving frame and metadata from an input media file.MediaRecorder.AudioEncoder
and MediaRecorder.OutputFormat
include new fields for specifying AMRWideband and AAC formats. The speech-recognition API includes new constants to let you manage voicesearch results in new ways. Although the new constants are not needed for normaluse of speech recognition, you could use them to offer a different view of voicesearch results in your application. For information, see RecognizerResultsIntent
.
The Android 2.3.3 platform delivers an updated version ofthe framework API. The Android 2.3.3 APIis assigned an integer identifier —10 — that isstored in the system itself. This identifier, called the 'API Level', allows thesystem to correctly determine whether an application is compatible withthe system, prior to installing the application.
To use APIs introduced in Android 2.3.3 in your application,you need compile the application against the Android library that is provided inthe Android 2.3.3 SDK platform. Depending on your needs, you might also need to add an android:minSdkVersion='10'
attribute to the <uses-sdk>
element in the application'smanifest. If your application is designed to run only on Android 2.3 and higher,declaring the attribute prevents the application from being installed on earlierversions of the platform.
For more information, read What is APILevel?