پلتفرم اندروید 2.1
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
سطح API: 7
Android 2.1 یک نسخه پلتفرم کوچک است که از ژانویه 2010 در گوشی های مجهز به اندروید قابل اجرا است. این نسخه شامل تغییرات جدید API و رفع اشکال است. برای اطلاعات در مورد تغییرات، به بخش Framework API مراجعه کنید.
برای توسعه دهندگان، پلتفرم Android 2.1 به عنوان یک جزء قابل دانلود برای Android SDK در دسترس است. پلتفرم قابل دانلود شامل یک کتابخانه و تصویر سیستم کاملاً سازگار اندروید و همچنین مجموعه ای از پوسته های شبیه ساز، برنامه های کاربردی نمونه و موارد دیگر است. پلتفرم قابل دانلود شامل هیچ کتابخانه خارجی نیست.
برای شروع توسعه یا آزمایش در برابر پلتفرم Android 2.1، از ابزار Android SDK و AVD Manager برای دانلود پلتفرم در SDK خود استفاده کنید.
نکات برجسته پلتفرم
Android 2.1 ویژگیهای کاربر قابل توجهی را اضافه نمیکند، برای اطلاع از آخرین ویژگیهای کاربر، به سند نکات برجسته پلتفرم Android 2.0 مراجعه کنید.
تجدید نظرها
بخشهای زیر یادداشتهایی درباره انتشارهای متوالی مؤلفه پلتفرم Android 2.1 برای Android SDK ارائه میدهند، همانطور که با شماره نسخه مشخص شده است. برای تعیین اینکه چه نسخههایی از پلتفرمهای Android 2.1 در محیط SDK شما نصب شدهاند، به فهرست «بستههای نصبشده» در Android SDK و مدیر AVD مراجعه کنید.
Android 2.1، نسخه 3 (ژوئیه 2011)
- وابستگی ها:
به ابزارهای SDK R12 یا بالاتر نیاز دارد.
- یادداشت ها:
بهبودهایی در کتابخانه رندر پلتفرم برای پشتیبانی از ویرایشگر طرحبندی بصری در افزونه ADT Eclipse. این ویرایش به ویژگی های ترسیم بیشتری در ADT اجازه می دهد و چندین باگ را در کتابخانه رندر قبلی رفع می کند. همچنین چندین ویژگی ویرایشگر را که در ADT 12 اضافه شده اند، باز می کند.
Android 2.1، نسخه 2 (مه 2010)
- وابستگی ها:
به ابزارهای SDK R6 یا بالاتر نیاز دارد.
- ابزار:
- پشتیبانی از پروژه های کتابخانه را در سیستم ساخت مورچه اضافه می کند.
- رندر طرحبندی بهبود یافته را در ویرایشگر طرحبندی بصری ADT اضافه میکند.
Android 2.1، نسخه 1 (ژانویه 2010)
- وابستگی ها:
به ابزارهای SDK R4 یا بالاتر نیاز دارد.
سطح API
پلتفرم Android 2.1 نسخه به روز شده ای از چارچوب API را ارائه می دهد. به API Android 2.1 یک شناسه عدد صحیح - 7 - اختصاص داده شده است که در خود سیستم ذخیره می شود. این شناسه که "سطح API" نامیده می شود، به سیستم اجازه می دهد تا قبل از نصب برنامه به درستی تعیین کند که آیا یک برنامه با سیستم سازگار است یا خیر.
برای استفاده از API های معرفی شده در Android 2.1 در برنامه خود، باید مقدار مناسب "7" را در ویژگی های android:minSdkVersion
عنصر <uses-sdk>
در مانیفست برنامه خود تنظیم کنید.
برای اطلاعات بیشتر در مورد نحوه استفاده از API Level، به سند API Levels مراجعه کنید.
تغییرات API چارچوب
بخش های زیر اطلاعاتی درباره تغییرات ایجاد شده در API چارچوب برنامه ارائه شده توسط پلتفرم Android 2.1 ارائه می دهد.
تصاویر پس زمینه زنده
افزودنی های زیر API هایی را برای توسعه تصاویر پس زمینه متحرک در اختیار شما قرار می دهند:
علاوه بر این، اگر برنامه شما از تصاویر پس زمینه زنده استفاده می کند یا ارائه می دهد، باید به خاطر داشته باشید که یک عنصر <uses-feature>
را به مانیفست برنامه اضافه کنید و ویژگی android:name="android.software.live_wallpaper"
اعلام کنید. به عنوان مثال:
<uses-feature android:name="android.software.live_wallpaper" />
هنگامی که برنامه خود را منتشر می کنید، Google Play وجود این عنصر را بررسی می کند و از آن به عنوان فیلتر استفاده می کند و مطمئن می شود که برنامه شما در دسترس کاربرانی قرار نمی گیرد که دستگاه هایشان از Live Wallpapers پشتیبانی نمی کنند.
تلفن
بازدیدها
وب کیت
- روش های جدید
WebStorage
برای دستکاری پایگاه داده های ذخیره سازی وب. - روشهای جدید
GeolocationPermissions
برای دریافت مجوزهای Geolocation و تنظیم آنها در WebView. - روشهای جدید
WebSettings
برای مدیریت تنظیمات حافظه پنهان برنامه، ذخیرهسازی وب و بزرگنمایی بر اساس تراکم صفحه. - روشهای جدید
WebChromeClient
برای مدیریت ویدیو، تاریخچه مرور، نماهای سفارشی، محدودیتهای حافظه پنهان برنامه و موارد دیگر.
گزارش تفاوت های API
برای مشاهده جزئیات همه تغییرات API در Android 2.1 (API Level 7)، در مقایسه با API Level 6، به گزارش تفاوتهای API مراجعه کنید.
برنامه های کاربردی داخلی
تصویر سیستم موجود در پلتفرم قابل دانلود این برنامه های داخلی را ارائه می دهد:
- ساعت زنگ دار
- مرورگر
- ماشین حساب
- دوربین
- مخاطبین
- محلی سفارشی (برنامه توسعه دهنده)
- Dev Tools (برنامه توسعه دهنده)
- ایمیل
| - گالری
- IME برای ورودی نوشتار ژاپنی، چینی و لاتین
- پیام رسانی
- موسیقی
- تلفن
- تنظیمات
- قطعات یدکی (برنامه توسعه دهنده)
|
محلی ها
تصویر سیستم موجود در پلتفرم قابل دانلود، انواع محلی داخلی را ارائه می دهد. در برخی موارد، رشتههای خاص منطقه برای مناطق موجود است. در موارد دیگر، از یک نسخه پیش فرض زبان استفاده می شود. زبانهایی که در تصویر سیستم Android 2.1 موجود هستند در زیر فهرست شدهاند (با زبان _ کشور/منطقه محلی توصیفکننده).
- چینی، PRC (zh_CN)
- چینی، تایوان (zh_TW)
- چک (cs_CZ)
- هلندی، هلند (nl_NL)
- هلندی، بلژیک (nl_BE)
- انگلیسی، ایالات متحده (en_US)
- انگلیسی، بریتانیا (en_GB)
- انگلیسی، کانادا (en_CA)
- انگلیسی، استرالیا (en_AU)
- انگلیسی، نیوزیلند (en_NZ)
- انگلیسی، سنگاپور (en_SG)
- فرانسوی، فرانسه (fr_FR)
- فرانسوی، بلژیک (fr_BE)
| فرانسوی، کانادا (fr_CA) فرانسوی، سوئیس (fr_CH) آلمانی، آلمان (de_DE) آلمانی، اتریش (de_AT) آلمان، سوئیس (de_CH) آلمانی، لیختن اشتاین (de_LI) ایتالیایی، ایتالیا (it_IT) ایتالیایی، سوئیس (it_CH) ژاپنی (ja_JP) کره ای (ko_KR) لهستانی (pl_PL) روسی (ru_RU) اسپانیایی (es_ES) |
رشتههای رابط کاربری محلی شده با زبانهایی که از طریق تنظیمات قابل دسترسی هستند مطابقت دارند.
پوسته های شبیه ساز
پلتفرم قابل دانلود شامل مجموعهای از پوستههای شبیهساز است که میتوانید از آنها برای مدلسازی اپلیکیشن خود در اندازهها و وضوحهای مختلف صفحهنمایش استفاده کنید. پوسته های شبیه ساز عبارتند از:
- QVGA (240x320، چگالی کم، صفحه نمایش کوچک)
- WQVGA (240x400، چگالی کم، صفحه نمایش معمولی)
- FWQVGA (240x432، چگالی کم، صفحه نمایش معمولی)
- HVGA (320x480، چگالی متوسط، صفحه نمایش معمولی)
- WVGA800 (480x800، تراکم بالا، صفحه نمایش معمولی)
- WVGA854 (480x854 چگالی بالا، صفحه نمایش معمولی)
برای اطلاعات بیشتر در مورد نحوه توسعه برنامهای که در همه دستگاههای مجهز به Android به درستی نمایش داده میشود و به درستی عمل میکند، به پشتیبانی از چندین صفحه مراجعه کنید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","easyToUnderstand","thumb-up"],["مشکلم را برطرف کرد","solvedMyProblem","thumb-up"],["غیره","otherUp","thumb-up"]],[["اطلاعاتی که نیاز دارم وجود ندارد","missingTheInformationINeed","thumb-down"],["بیشازحد پیچیده/ مراحل بسیار زیاد","tooComplicatedTooManySteps","thumb-down"],["قدیمی","outOfDate","thumb-down"],["مشکل ترجمه","translationIssue","thumb-down"],["مشکل کد / نمونهها","samplesCodeIssue","thumb-down"],["غیره","otherDown","thumb-down"]],["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# Android 2.1 Platform\n\n*API Level:* **7**\n\nAndroid 2.1 is a minor platform release\ndeployable to Android-powered handsets starting in January 2010.\nThis release includes new API\nchanges and bug fixes. For information on changes, see the [Framework API](#api)\nsection.\n\nFor developers, the Android 2.1 platform is available as a\ndownloadable component for the Android SDK. The downloadable platform includes a\nfully compliant Android library and system image, as well as a set of emulator\nskins, sample applications, and more. The downloadable platform\nincludes no external libraries.\n\nTo get started developing or testing against the Android\n2.1 platform, use the Android SDK and AVD Manager tool to\ndownload the platform into your SDK.\n\nPlatform Highlights\n-------------------\n\nAndroid 2.1 does not add significant user features, see the [Android\n2.0 Platform Highlights](https://developer.android.com/about/versions/android-2.0-highlights.html) document for the latest user features.\n\nRevisions\n---------\n\nThe sections below provide notes about successive releases of\nthe Android 2.1 platform component for the Android SDK, as denoted by\nrevision number. To determine what revision(s) of the Android\n2.1 platforms are installed in your SDK environment, refer to\nthe \"Installed Packages\" listing in the Android SDK and AVD Manager.\nAndroid 2.1, Revision 3 *(July 2011)*\n\nDependencies:\n\n: Requires [SDK Tools r12](/tools/sdk/tools-notes) or\n higher.\n\nNotes:\n\n: Improvements to the platform's rendering library to support the visual layout editor in the ADT\n Eclipse plugin. This revision allows for more drawing features in ADT and fixes several\n bugs in the previous rendering library. It also unlocks several editor features that were added in\n ADT 12.\n\nAndroid 2.1, Revision 2 *(May 2010)*\n\nDependencies:\n\n: Requires SDK Tools r6 or higher.\n\nTools:\n:\n - Adds support for library projects in the Ant build system.\n - Adds improved layout rendering in ADT's visual layout editor.\n\nAndroid 2.1, Revision 1 *(January 2010)*\n\nDependencies:\n\n: Requires SDK Tools r4 or higher.\n\nAPI Level\n---------\n\nThe Android 2.1 platform delivers an updated version of\nthe framework API. The Android 2.1 API\nis assigned an integer identifier ---\n**7** --- that is\nstored in the system itself. This identifier, called the \"API Level\", allows the\nsystem to correctly determine whether an application is compatible with\nthe system, prior to installing the application.\n\nTo use APIs introduced in Android 2.1 in your\napplication, you need to set the proper value, \"7\", in the\n`android:minSdkVersion` attributes of the `\u003cuses-sdk\u003e`\nelement in your application's manifest.\n\nFor more information about how to use API Level, see the [API Levels](/guide/topics/manifest/uses-sdk-element#ApiLevels) document.\n\nFramework API Changes\n---------------------\n\nThe sections below provide information about changes made to the application\nframework API provided by the Android 2.1 platform.\n\n### Live Wallpapers\n\nThe following additions provide APIs for you to develop animated wallpapers:\n\n- New [android.service.wallpaper](/reference/android/service/wallpaper/package-summary) package.\n- New [WallpaperInfo](/reference/android/app/WallpaperInfo) class.\n- Updated [WallpaperManager](/reference/android/app/WallpaperManager).\n\nAdditionally, if your application uses or provides Live Wallpapers, you must\nremember to add a [`\u003cuses-feature\u003e`](/guide/topics/manifest/uses-feature-element)\nelement to the application's manifest, declaring the attribute\n`android:name=\"android.software.live_wallpaper\"`. For example: \n\n```\n\u003cuses-feature android:name=\"android.software.live_wallpaper\" /\u003e\n```\n\nWhen you've published your application, Google Play checks for the\npresence of this element and uses it as a filter, ensuring that your application\nis not made available to users whose devices do not support Live Wallpapers.\n\n### Telephony\n\n- New [SignalStrength](/reference/android/telephony/SignalStrength) class provides information about the device's current network signal. This can be acquired from the new [onSignalStrengthsChanged(SignalStrength)](/reference/android/telephony/PhoneStateListener#onSignalStrengthsChanged(android.telephony.SignalStrength)) callback.\n- New [onDataConnectionStateChanged(int, int)](/reference/android/telephony/PhoneStateListener#onDataConnectionStateChanged(int, int)) callback.\n\n### Views\n\n- New [View](/reference/android/view/View) methods [isOpaque()](/reference/android/view/View#isOpaque()) and [onDrawScrollBars(Canvas)](/reference/android/view/View#onDrawScrollBars(android.graphics.Canvas)).\n- New [RemoteViews](/reference/android/widget/RemoteViews) methods [addView(int, RemoteViews)](/reference/android/widget/RemoteViews#addView(int, android.widget.RemoteViews)) and [removeAllViews(int)](/reference/android/widget/RemoteViews#removeAllViews(int)).\n- New [ViewGroup](/reference/android/view/ViewGroup) methods [isChildrenDrawingOrderEnabled()](/reference/android/view/ViewGroup#isChildrenDrawingOrderEnabled()) and [setChildrenDrawingOrderEnabled(boolean)](/reference/android/view/ViewGroup#setChildrenDrawingOrderEnabled(boolean)).\n\n### WebKit\n\n- New [WebStorage](/reference/android/webkit/WebStorage) methods to manipulate web storage databases.\n- New [GeolocationPermissions](/reference/android/webkit/GeolocationPermissions) methods to get Geolocation permissions from, and set them on the WebView.\n- New [WebSettings](/reference/android/webkit/WebSettings) methods to manage settings for app cache, web storage, and zooming based on screen density.\n- New [WebChromeClient](/reference/android/webkit/WebChromeClient) methods for handling video, browsing history, custom Views, app cache limits, and more.\n\n### API differences report\n\nFor a detailed view of all API changes in Android 2.1 (API\nLevel 7), as compared to API Level 6, see the [API\nDifferences Report](/sdk/api_diff/7/changes).\n\nBuilt-in Applications\n---------------------\n\nThe system image included in the downloadable platform provides these\nbuilt-in applications:\n\n|------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| - Alarm Clock - Browser - Calculator - Camera - Contacts - Custom Locale (developer app) - Dev Tools (developer app) - Email | - Gallery - IMEs for Japanese, Chinese, and Latin text input - Messaging - Music - Phone - Settings - Spare Parts (developer app) |\n\nLocales\n-------\n\nThe system image included in the downloadable platform provides a variety of\nbuilt-in locales. In some cases, region-specific strings are available for the\nlocales. In other cases, a default version of the language is used. The\nlanguages that are available in the Android 2.1 system\nimage are listed below (with *language* _*country/region* locale\ndescriptor).\n\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| - Chinese, PRC (zh_CN) - Chinese, Taiwan (zh_TW) - Czech (cs_CZ) - Dutch, Netherlands (nl_NL) - Dutch, Belgium (nl_BE) - English, US (en_US) - English, Britain (en_GB) - English, Canada (en_CA) - English, Australia (en_AU) - English, New Zealand (en_NZ) - English, Singapore(en_SG) - French, France (fr_FR) - French, Belgium (fr_BE) | - French, Canada (fr_CA) - French, Switzerland (fr_CH) - German, Germany (de_DE) - German, Austria (de_AT) - German, Switzerland (de_CH) - German, Liechtenstein (de_LI) - Italian, Italy (it_IT) - Italian, Switzerland (it_CH) - Japanese (ja_JP) - Korean (ko_KR) - Polish (pl_PL) - Russian (ru_RU) - Spanish (es_ES) |\n\nLocalized UI strings match the locales that are accessible\nthrough Settings.\n\nEmulator Skins\n--------------\n\nThe downloadable platform includes a set of emulator skins that you can use\nfor modeling your application in different screen sizes and resolutions. The\nemulator skins are:\n\n- QVGA (240x320, low density, small screen)\n- WQVGA (240x400, low density, normal screen)\n- FWQVGA (240x432, low density, normal screen)\n- HVGA (320x480, medium density, normal screen)\n- WVGA800 (480x800, high density, normal screen)\n- WVGA854 (480x854 high density, normal screen)\n\nFor more information about how to develop an application that displays\nand functions properly on all Android-powered devices, see [Supporting Multiple\nScreens](/guide/practices/screens_support)."]]