एंड्रॉइड 4.0 संगतता परिभाषा दस्तावेज़

संशोधन 4
अंतिम अद्यतन: 21 अप्रैल 2013

कॉपीराइट © 2012, गूगल इंक. सर्वाधिकार सुरक्षित।
अनुकूलता@android.com

विषयसूची

1 परिचय
2. संसाधन
3. सॉफ्टवेयर
3.1. प्रबंधित एपीआई संगतता
3.2. सॉफ्ट एपीआई संगतता
3.3. मूल एपीआई संगतता
3.4. वेब अनुकूलता
3.5. एपीआई व्यवहार संगतता
3.6. एपीआई नेमस्पेस
3.7. वर्चुअल मशीन संगतता
3.8. उपयोगकर्ता इंटरफ़ेस अनुकूलता
3.9 डिवाइस प्रशासन
3.10 अभिगम्यता
3.11 टेक्स्ट-टू-स्पीच
4. अनुप्रयोग पैकेजिंग संगतता
5. मल्टीमीडिया संगतता
6. डेवलपर टूल संगतता
7. हार्डवेयर अनुकूलता
7.1. प्रदर्शन और ग्राफ़िक्स
7.2. आगत यंत्र
7.3. सेंसर
7.4. डेटा कनेक्टिविटी
7.5. कैमरा
7.6. मेमोरी और स्टोरेज
7.7. USB
8. प्रदर्शन अनुकूलता
9. सुरक्षा मॉडल संगतता
10. सॉफ्टवेयर संगतता परीक्षण
11. अद्यतन करने योग्य सॉफ्टवेयर
12. हमसे संपर्क करें
परिशिष्ट ए - ब्लूटूथ परीक्षण प्रक्रिया

1 परिचय

यह दस्तावेज़ उन आवश्यकताओं को सूचीबद्ध करता है जिन्हें डिवाइसों को एंड्रॉइड 4.0 के साथ संगत होने के लिए पूरा किया जाना चाहिए।

"आवश्यक", "नहीं होना चाहिए", "आवश्यक", "होगा", "नहीं होगा", "चाहिए", "नहीं होना चाहिए", "अनुशंसित", "हो सकता है" और "वैकल्पिक" का उपयोग IETF मानक के अनुसार है RFC2119 [ संसाधन, 1 ] में परिभाषित।

जैसा कि इस दस्तावेज़ में उपयोग किया गया है, "डिवाइस कार्यान्वयनकर्ता" या "कार्यान्वयनकर्ता" एक व्यक्ति या संगठन है जो एंड्रॉइड 4.0 पर चलने वाला हार्डवेयर/सॉफ़्टवेयर समाधान विकसित कर रहा है। "डिवाइस कार्यान्वयन" या "कार्यान्वयन" इस प्रकार विकसित हार्डवेयर/सॉफ़्टवेयर समाधान है।

एंड्रॉइड 4.0 के साथ संगत माने जाने के लिए, डिवाइस कार्यान्वयन को इस संगतता परिभाषा में प्रस्तुत आवश्यकताओं को पूरा करना होगा, जिसमें संदर्भ के माध्यम से शामिल कोई भी दस्तावेज़ शामिल है।

जहां यह परिभाषा या धारा 10 में वर्णित सॉफ्टवेयर परीक्षण मौन, अस्पष्ट या अपूर्ण है, वहां मौजूदा कार्यान्वयन के साथ अनुकूलता सुनिश्चित करना डिवाइस कार्यान्वयनकर्ता की जिम्मेदारी है।

इस कारण से, एंड्रॉइड ओपन सोर्स प्रोजेक्ट [ संसाधन, 3 ] एंड्रॉइड का संदर्भ और पसंदीदा कार्यान्वयन दोनों है। डिवाइस कार्यान्वयनकर्ताओं को अपने कार्यान्वयन को एंड्रॉइड ओपन सोर्स प्रोजेक्ट से उपलब्ध "अपस्ट्रीम" स्रोत कोड पर यथासंभव अधिकतम सीमा तक आधारित करने के लिए दृढ़ता से प्रोत्साहित किया जाता है। जबकि कुछ घटकों को काल्पनिक रूप से वैकल्पिक कार्यान्वयन के साथ प्रतिस्थापित किया जा सकता है, इस अभ्यास को दृढ़ता से हतोत्साहित किया जाता है, क्योंकि सॉफ्टवेयर परीक्षण पास करना काफी अधिक कठिन हो जाएगा। यह कार्यान्वयनकर्ता की जिम्मेदारी है कि वह संगतता परीक्षण सूट सहित और उससे परे मानक एंड्रॉइड कार्यान्वयन के साथ पूर्ण व्यवहारिक अनुकूलता सुनिश्चित करे। अंत में, ध्यान दें कि कुछ घटक प्रतिस्थापन और संशोधन इस दस्तावेज़ द्वारा स्पष्ट रूप से निषिद्ध हैं।

2. संसाधन

  1. IETF RFC2119 आवश्यकता स्तर: http://www.ietf.org/rfc/rfc2119.txt
  2. एंड्रॉइड संगतता कार्यक्रम अवलोकन: http://source.android.com/docs/compatibility/index.html
  3. एंड्रॉइड ओपन सोर्स प्रोजेक्ट: http://source.android.com/
  4. एपीआई परिभाषाएँ और दस्तावेज़ीकरण: http://developer.android.com/reference/packages.html
  5. Android अनुमतियाँ संदर्भ: http://developer.android.com/reference/android/Manifest.permission.html
  6. android.os.Build संदर्भ: http://developer.android.com/reference/android/os/Build.html
  7. Android 4.0 अनुमत संस्करण स्ट्रिंग: http://source.android.com/docs/compatibility/4.0/versions.html
  8. रेंडरस्क्रिप्ट: http://developer.android.com/guide/topics/graphics/renderscript.html
  9. हार्डवेयर त्वरण: http://developer.android.com/guide/topics/graphics/hardware-accel.html
  10. android.webkit.WebView क्लास: http://developer.android.com/reference/android/webkit/WebView.html
  11. HTML5: http://www.whatwg.org/specs/web-apps/current-work/multipage/
  12. HTML5 ऑफ़लाइन क्षमताएं: http://dev.w3.org/html5/spec/Overview.html#offline
  13. HTML5 वीडियो टैग: http://dev.w3.org/html5/spec/Overview.html#video
  14. HTML5/W3C जियोलोकेशन एपीआई: http://www.w3.org/TR/geolocation-API/
  15. HTML5/W3C वेबडेटाबेस API: http://www.w3.org/TR/webdatabase/
  16. HTML5/W3C IndexedDB API: http://www.w3.org/TR/IndexedDB/
  17. डाल्विक वर्चुअल मशीन विशिष्टता: एंड्रॉइड स्रोत कोड में दल्विक/डॉक्स पर उपलब्ध है
  18. ऐपविजेट्स: http://developer.android.com/guide/practices/ui_guidelines/widget_design.html
  19. सूचनाएं: http://developer.android.com/guide/topics/ui/notifiers/notifications.html
  20. एप्लिकेशन संसाधन: http://code.google.com/android/reference/available-resources.html
  21. स्टेटस बार आइकन स्टाइल गाइड: http://developer.android.com/guide/practices/ui_guideline /icon_design.html#statusbarstructure
  22. खोज प्रबंधक: http://developer.android.com/reference/android/app/SearchManager.html
  23. टोस्ट: http://developer.android.com/reference/android/widget/Toast.html
  24. थीम्स: http://developer.android.com/guide/topics/ui/themes.html
  25. आर.स्टाइल क्लास: http://developer.android.com/reference/android/R.style.html
  26. लाइव वॉलपेपर: https://android-developers.googleblog.com/2010/02/live-wallpapers.html
  27. Android डिवाइस प्रशासन: http://developer.android.com/guide/topics/admin/device-admin.html
  28. android.app.admin.DevicePolicyManager वर्ग: http://developer.android.com/reference/android/app/admin/DevicePolicyManager.html
  29. एंड्रॉइड एक्सेसिबिलिटी सर्विस एपीआई: http://developer.android.com/reference/android/accessibilityservice/package-summary.html
  30. एंड्रॉइड एक्सेसिबिलिटी एपीआई: http://developer.android.com/reference/android/view/accessibility/package-summary.html
  31. आंखें निःशुल्क परियोजना: http://code.google.com/p/eyes-free
  32. टेक्स्ट-टू-स्पीच एपीआई: http://developer.android.com/reference/android/speech/tts/package-summary.html
  33. संदर्भ उपकरण दस्तावेज़ीकरण (एडीबी, एएपीटी, डीडीएमएस के लिए): http://developer.android.com/guide/developing/tools/index.html
  34. एंड्रॉइड एपीके फ़ाइल विवरण: http://developer.android.com/guide/topics/fundamentals.html
  35. मैनिफ़ेस्ट फ़ाइलें: http://developer.android.com/guide/topics/manifest/manifest-intro.html
  36. बंदर परीक्षण उपकरण: https://developer.android.com/studio/test/other-testing-tools/monkey
  37. Android android.content.pm.PackageManager वर्ग और हार्डवेयर सुविधाओं की सूची: http://developer.android.com/reference/android/content/pm/PackageManager.html
  38. एकाधिक स्क्रीन का समर्थन: http://developer.android.com/guide/practices/screens_support.html
  39. android.util.DisplayMetrics: http://developer.android.com/reference/android/util/DisplayMetrics.html
  40. android.content.res.कॉन्फ़िगरेशन: http://developer.android.com/reference/android/content/res/Configuration.html
  41. android.hardware.SensorEvent: http://developer.android.com/reference/android/hardware/SensorEvent.html
  42. ब्लूटूथ एपीआई: http://developer.android.com/reference/android/bluetooth/package-summary.html
  43. एनडीईएफ पुश प्रोटोकॉल: http://source.android.com/docs/compatibility/ndef-push-protocol.pdf
  44. मिफेयर MF1S503X: http://www.nxp.com/documents/data_ शीट/MF1S503x.pdf
  45. मिफेयर MF1S703X: http://www.nxp.com/documents/data_ शीट/MF1S703x.pdf
  46. मिफेयर MF0ICU1: http://www.nxp.com/documents/data_ शीट/MF0ICU1.pdf
  47. मिफेयर MF0ICU2: http://www.nxp.com/documents/short_data_ शीट/MF0ICU2_SDS.pdf
  48. मिफेयर AN130511: http://www.nxp.com/documents/application_note/AN130511.pdf
  49. मिफेयर AN130411: http://www.nxp.com/documents/application_note/AN130411.pdf
  50. कैमरा ओरिएंटेशन एपीआई: http://developer.android.com/reference/android/hardware/Camera.html#setDisplayOrientation(int)
  51. android.hardware.Camera: http://developer.android.com/reference/android/hardware/Camera.html
  52. एंड्रॉइड ओपन एक्सेसरीज: http://developer.android.com/guide/topics/usb/accessory.html
  53. यूएसबी होस्ट एपीआई: http://developer.android.com/guide/topics/usb/host.html
  54. Android सुरक्षा और अनुमतियाँ संदर्भ: http://developer.android.com/guide/topics/security/security.html
  55. Android के लिए ऐप्स: http://code.google.com/p/apps-for-android
  56. android.app.DownloadManager क्लास: http://developer.android.com/reference/android/app/DownloadManager.html
  57. Android फ़ाइल स्थानांतरण: http://www.android.com/filetransfer
  58. एंड्रॉइड मीडिया प्रारूप: http://developer.android.com/guide/appendix/media-formats.html
  59. HTTP लाइव स्ट्रीमिंग ड्राफ्ट प्रोटोकॉल: http://tools.ietf.org/html/draft-pantos-http-live-streaming-03
  60. मोशन इवेंट एपीआई: http://developer.android.com/reference/android/view/MotionEvent.html
  61. टच इनपुट कॉन्फ़िगरेशन: http://source.android.com/tech/input/touch-devices.html

इनमें से कई संसाधन प्रत्यक्ष या अप्रत्यक्ष रूप से एंड्रॉइड 4.0 एसडीके से प्राप्त किए गए हैं, और कार्यात्मक रूप से उस एसडीके के दस्तावेज़ में दी गई जानकारी के समान होंगे। किसी भी मामले में जहां यह संगतता परिभाषा या संगतता परीक्षण सूट एसडीके दस्तावेज़ीकरण से असहमत है, एसडीके दस्तावेज़ीकरण को आधिकारिक माना जाता है। ऊपर शामिल संदर्भों में प्रदान किए गए किसी भी तकनीकी विवरण को इस संगतता परिभाषा का हिस्सा माना जाता है।

3. सॉफ्टवेयर

3.1. प्रबंधित एपीआई संगतता

प्रबंधित (Dalvik-आधारित) निष्पादन वातावरण Android अनुप्रयोगों के लिए प्राथमिक साधन है। एंड्रॉइड एप्लिकेशन प्रोग्रामिंग इंटरफ़ेस (एपीआई) प्रबंधित वीएम वातावरण में चल रहे एप्लिकेशन के संपर्क में आने वाले एंड्रॉइड प्लेटफ़ॉर्म इंटरफ़ेस का सेट है। डिवाइस कार्यान्वयन को एंड्रॉइड 4.0 एसडीके [ संसाधन, 4 ] द्वारा उजागर किए गए किसी भी दस्तावेजित एपीआई के सभी दस्तावेजित व्यवहारों सहित पूर्ण कार्यान्वयन प्रदान करना होगा।

डिवाइस कार्यान्वयन में किसी भी प्रबंधित एपीआई को छोड़ना नहीं चाहिए, एपीआई इंटरफेस या हस्ताक्षर को बदलना नहीं चाहिए, दस्तावेजित व्यवहार से विचलन नहीं करना चाहिए, या नो-ऑप्स शामिल नहीं करना चाहिए, सिवाय इसके कि जहां इस संगतता परिभाषा द्वारा विशेष रूप से अनुमति दी गई हो।

यह संगतता परिभाषा कुछ प्रकार के हार्डवेयर की अनुमति देती है जिसके लिए एंड्रॉइड में डिवाइस कार्यान्वयन द्वारा छोड़े जाने वाले एपीआई शामिल हैं। ऐसे मामलों में, एपीआई को अभी भी मौजूद रहना चाहिए और उचित तरीके से व्यवहार करना चाहिए। इस परिदृश्य के लिए विशिष्ट आवश्यकताओं के लिए धारा 7 देखें।

3.2. सॉफ्ट एपीआई संगतता

धारा 3.1 से प्रबंधित एपीआई के अलावा, एंड्रॉइड में एक महत्वपूर्ण रनटाइम-केवल "सॉफ्ट" एपीआई भी शामिल है, जैसे कि इरादे, अनुमतियां और एंड्रॉइड अनुप्रयोगों के समान पहलू जिन्हें एप्लिकेशन संकलन समय पर लागू नहीं किया जा सकता है।

3.2.1. अनुमतियां

डिवाइस कार्यान्वयनकर्ताओं को अनुमति संदर्भ पृष्ठ [ संसाधन, 5 ] द्वारा प्रलेखित सभी अनुमति स्थिरांकों का समर्थन और कार्यान्वयन करना चाहिए। ध्यान दें कि धारा 10 एंड्रॉइड सुरक्षा मॉडल से संबंधित अतिरिक्त आवश्यकताओं को सूचीबद्ध करती है।

3.2.3. पैरामीटर बनाएं

एंड्रॉइड एपीआई में android.os.Build क्लास [ संसाधन, 6 ] पर कई स्थिरांक शामिल हैं जिनका उद्देश्य वर्तमान डिवाइस का वर्णन करना है। सभी डिवाइस कार्यान्वयनों में सुसंगत, सार्थक मान प्रदान करने के लिए, नीचे दी गई तालिका में इन मूल्यों के प्रारूपों पर अतिरिक्त प्रतिबंध शामिल हैं जिनके लिए डिवाइस कार्यान्वयन को अनुरूप होना चाहिए।

पैरामीटर टिप्पणियाँ
android.os.Build.VERSION.रिलीज़ मानव-पठनीय प्रारूप में वर्तमान में क्रियान्वित एंड्रॉइड सिस्टम का संस्करण। इस फ़ील्ड में [ संसाधन, 7 ] में परिभाषित स्ट्रिंग मानों में से एक होना चाहिए।
android.os.Build.VERSION.SDK वर्तमान में क्रियान्वित एंड्रॉइड सिस्टम का संस्करण, तीसरे पक्ष के एप्लिकेशन कोड के लिए सुलभ प्रारूप में। एंड्रॉइड 4.0.1 - 4.0.2 के लिए, इस फ़ील्ड का पूर्णांक मान 14 होना चाहिए। एंड्रॉइड 4.0.3 या उससे अधिक के लिए, इस फ़ील्ड का पूर्णांक मान 15 होना चाहिए।
android.os.Build.VERSION.SDK_INT वर्तमान में क्रियान्वित एंड्रॉइड सिस्टम का संस्करण, तीसरे पक्ष के एप्लिकेशन कोड के लिए सुलभ प्रारूप में। एंड्रॉइड 4.0.1 - 4.0.2 के लिए, इस फ़ील्ड का पूर्णांक मान 14 होना चाहिए। एंड्रॉइड 4.0.3 या उससे अधिक के लिए, इस फ़ील्ड का पूर्णांक मान 15 होना चाहिए।
android.os.Build.version.incremental मानव-पठनीय प्रारूप में वर्तमान में निष्पादित एंड्रॉइड सिस्टम के विशिष्ट निर्माण को निर्दिष्ट करने वाले डिवाइस कार्यान्वयनकर्ता द्वारा चुना गया मान। अंतिम उपयोगकर्ताओं को उपलब्ध कराए गए विभिन्न बिल्डों के लिए इस मान का पुन: उपयोग नहीं किया जाना चाहिए। इस फ़ील्ड का एक विशिष्ट उपयोग यह इंगित करना है कि बिल्ड उत्पन्न करने के लिए किस बिल्ड नंबर या स्रोत-नियंत्रण परिवर्तन पहचानकर्ता का उपयोग किया गया था। इस फ़ील्ड के विशिष्ट प्रारूप पर कोई आवश्यकता नहीं है, सिवाय इसके कि यह शून्य या खाली स्ट्रिंग ("") नहीं होना चाहिए।
android.os.Build.BOARD मानव-पठनीय प्रारूप में डिवाइस द्वारा उपयोग किए जाने वाले विशिष्ट आंतरिक हार्डवेयर की पहचान करने वाले डिवाइस कार्यान्वयनकर्ता द्वारा चुना गया मान। इस फ़ील्ड का संभावित उपयोग डिवाइस को पावर देने वाले बोर्ड के विशिष्ट संशोधन को इंगित करना है। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.ब्रांड डिवाइस कार्यान्वयनकर्ता द्वारा मानव-पठनीय प्रारूप में डिवाइस का उत्पादन करने वाली कंपनी, संगठन, व्यक्ति आदि के नाम की पहचान करते हुए चुना गया मूल्य। इस फ़ील्ड का संभावित उपयोग डिवाइस बेचने वाले OEM और/या वाहक को इंगित करना है। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.CPU_ABI मूल कोड के निर्देश सेट का नाम (सीपीयू प्रकार + एबीआई कन्वेंशन)। धारा 3.3 देखें: मूल एपीआई संगतता
android.os.Build.CPU_ABI2 मूल कोड के दूसरे निर्देश सेट (सीपीयू प्रकार + एबीआई कन्वेंशन) का नाम। धारा 3.3 देखें: मूल एपीआई संगतता
android.os.Build.DEVICE डिवाइस कार्यान्वयनकर्ता द्वारा डिवाइस के विशिष्ट कॉन्फ़िगरेशन या बॉडी के संशोधन (कभी-कभी "औद्योगिक डिज़ाइन" कहा जाता है) की पहचान करने के लिए चुना गया मान। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.FINGERPRINT एक स्ट्रिंग जो विशिष्ट रूप से इस निर्माण की पहचान करती है। यह यथोचित रूप से मानव-पठनीय होना चाहिए। इसे इस टेम्पलेट का पालन करना होगा:
$(BRAND)/$(PRODUCT)/$(DEVICE):$(VERSION.RELEASE)/$(ID)/$(VERSION.INCREMENTAL):$(TYPE)/$(TAGS)
उदाहरण के लिए:
acme/mydevice/generic:4.0/IRK77/3359:userdebug/test-keys
फिंगरप्रिंट में रिक्त स्थान वाले अक्षर शामिल नहीं होने चाहिए। यदि ऊपर दिए गए टेम्प्लेट में शामिल अन्य फ़ील्ड में व्हाइटस्पेस वर्ण हैं, तो उन्हें बिल्ड फ़िंगरप्रिंट में किसी अन्य वर्ण, जैसे अंडरस्कोर ("_") वर्ण से प्रतिस्थापित किया जाना चाहिए। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए।
android.os.Build.हार्डवेयर हार्डवेयर का नाम (कर्नेल कमांड लाइन या /proc से)। यह यथोचित रूप से मानव-पठनीय होना चाहिए। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.HOST एक स्ट्रिंग जो विशिष्ट रूप से मानव पठनीय प्रारूप में उस होस्ट की पहचान करती है जिस पर निर्माण किया गया था। इस फ़ील्ड के विशिष्ट प्रारूप पर कोई आवश्यकता नहीं है, सिवाय इसके कि यह शून्य या खाली स्ट्रिंग ("") नहीं होना चाहिए।
android.os.Build.ID मानव पठनीय प्रारूप में एक विशिष्ट रिलीज़ को संदर्भित करने के लिए डिवाइस कार्यान्वयनकर्ता द्वारा चुना गया एक पहचानकर्ता। यह फ़ील्ड android.os.Build.VERSION.INCREMENTAL के समान हो सकती है, लेकिन अंतिम उपयोगकर्ताओं के लिए सॉफ़्टवेयर बिल्ड के बीच अंतर करने के लिए पर्याप्त रूप से सार्थक मूल्य होना चाहिए। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.निर्माता उत्पाद के मूल उपकरण निर्माता (ओईएम) का व्यापार नाम। इस फ़ील्ड के विशिष्ट प्रारूप पर कोई आवश्यकता नहीं है, सिवाय इसके कि यह शून्य या खाली स्ट्रिंग ("") नहीं होना चाहिए।
android.os.Build.MODEL डिवाइस कार्यान्वयनकर्ता द्वारा चुना गया एक मान जिसमें अंतिम उपयोगकर्ता को ज्ञात डिवाइस का नाम शामिल होता है। यह वही नाम होना चाहिए जिसके तहत डिवाइस का विपणन किया जाता है और अंतिम उपयोगकर्ताओं को बेचा जाता है। इस फ़ील्ड के विशिष्ट प्रारूप पर कोई आवश्यकता नहीं है, सिवाय इसके कि यह शून्य या खाली स्ट्रिंग ("") नहीं होना चाहिए।
android.os.Build.PRODUCT डिवाइस कार्यान्वयनकर्ता द्वारा चुना गया एक मान जिसमें उत्पाद का विकास नाम या कोड नाम (SKU) होता है। मानव-पठनीय होना चाहिए, लेकिन अंतिम उपयोगकर्ताओं द्वारा देखने के लिए आवश्यक नहीं है। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.SERIAL एक हार्डवेयर सीरियल नंबर, यदि उपलब्ध हो। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^([a-zA-Z0-9]{0,20})$" मेल खाना चाहिए।
android.os.Build.TAGS डिवाइस कार्यान्वयनकर्ता द्वारा चुने गए टैग की अल्पविराम से अलग की गई सूची जो बिल्ड को और अलग करती है। उदाहरण के लिए, "अहस्ताक्षरित, डीबग"। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.TIME निर्माण कब हुआ, इसके टाइमस्टैम्प को दर्शाने वाला मान।
android.os.Build.TYPE बिल्ड के रनटाइम कॉन्फ़िगरेशन को निर्दिष्ट करने वाले डिवाइस कार्यान्वयनकर्ता द्वारा चुना गया मान। इस फ़ील्ड में तीन विशिष्ट एंड्रॉइड रनटाइम कॉन्फ़िगरेशन के अनुरूप मानों में से एक होना चाहिए: "उपयोगकर्ता", "उपयोगकर्ताडेबग", या "इंग्लैंड"। इस फ़ील्ड का मान 7-बिट ASCII के रूप में एन्कोड करने योग्य होना चाहिए और नियमित अभिव्यक्ति "^[a-zA-Z0-9.,_-]+$" मेल खाना चाहिए।
android.os.Build.USER उपयोगकर्ता (या स्वचालित उपयोगकर्ता) का नाम या उपयोगकर्ता आईडी जिसने बिल्ड तैयार किया। इस फ़ील्ड के विशिष्ट प्रारूप पर कोई आवश्यकता नहीं है, सिवाय इसके कि यह शून्य या खाली स्ट्रिंग ("") नहीं होना चाहिए।

3.2.3. आशय अनुकूलता

डिवाइस कार्यान्वयन को एंड्रॉइड के लूज़-कपलिंग इंटेंट सिस्टम का सम्मान करना चाहिए, जैसा कि नीचे दिए गए अनुभागों में बताया गया है। "सम्मानित" से तात्पर्य यह है कि डिवाइस कार्यान्वयनकर्ता को एक एंड्रॉइड गतिविधि या सेवा प्रदान करनी होगी जो एक मिलान इंटेंट फ़िल्टर निर्दिष्ट करती है और प्रत्येक निर्दिष्ट इंटेंट पैटर्न के लिए सही व्यवहार को बांधती है और लागू करती है।

3.2.3.1. मुख्य अनुप्रयोग उद्देश्य

एंड्रॉइड अपस्ट्रीम प्रोजेक्ट कई मुख्य अनुप्रयोगों को परिभाषित करता है, जैसे संपर्क, कैलेंडर, फोटो गैलरी, म्यूजिक प्लेयर इत्यादि। डिवाइस कार्यान्वयनकर्ता इन अनुप्रयोगों को वैकल्पिक संस्करणों से बदल सकते हैं।

हालाँकि, ऐसे किसी भी वैकल्पिक संस्करण को अपस्ट्रीम प्रोजेक्ट द्वारा प्रदान किए गए समान इंटेंट पैटर्न का सम्मान करना चाहिए। उदाहरण के लिए, यदि किसी डिवाइस में वैकल्पिक म्यूजिक प्लेयर है, तो उसे गाना चुनने के लिए तीसरे पक्ष के एप्लिकेशन द्वारा जारी किए गए इंटेंट पैटर्न का पालन करना होगा।

निम्नलिखित एप्लिकेशन को मुख्य एंड्रॉइड सिस्टम एप्लिकेशन माना जाता है:

  • मेज घड़ी
  • ब्राउज़र
  • पंचांग
  • संपर्क
  • गैलरी
  • वैश्विक खोज
  • लांचर
  • संगीत
  • समायोजन

मुख्य एंड्रॉइड सिस्टम अनुप्रयोगों में विभिन्न गतिविधि, या सेवा घटक शामिल होते हैं जिन्हें "सार्वजनिक" माना जाता है। अर्थात्, विशेषता "एंड्रॉइड:एक्सपोर्टेड" अनुपस्थित हो सकती है, या उसका मान "सही" हो सकता है।

कोर एंड्रॉइड सिस्टम ऐप्स में से एक में परिभाषित प्रत्येक गतिविधि या सेवा के लिए जिसे एंड्रॉइड के माध्यम से गैर-सार्वजनिक के रूप में चिह्नित नहीं किया गया है: "गलत" मान के साथ निर्यातित विशेषता, डिवाइस कार्यान्वयन में समान इरादे फ़िल्टर को लागू करने वाले समान प्रकार का एक घटक शामिल होना चाहिए कोर एंड्रॉइड सिस्टम ऐप के रूप में पैटर्न।

दूसरे शब्दों में, एक डिवाइस कार्यान्वयन कोर एंड्रॉइड सिस्टम ऐप्स को प्रतिस्थापित कर सकता है; हालाँकि, यदि ऐसा होता है, तो डिवाइस कार्यान्वयन को प्रतिस्थापित किए जा रहे प्रत्येक कोर एंड्रॉइड सिस्टम ऐप द्वारा परिभाषित सभी इंटेंट पैटर्न का समर्थन करना होगा।

3.2.3.2. इरादा ओवरराइड करता है

चूंकि एंड्रॉइड एक एक्स्टेंसिबल प्लेटफ़ॉर्म है, डिवाइस कार्यान्वयन को धारा 3.2.3.2 में संदर्भित प्रत्येक इंटेंट पैटर्न को तीसरे पक्ष के अनुप्रयोगों द्वारा ओवरराइड करने की अनुमति देनी चाहिए। अपस्ट्रीम एंड्रॉइड ओपन सोर्स कार्यान्वयन डिफ़ॉल्ट रूप से इसकी अनुमति देता है; डिवाइस कार्यान्वयनकर्ताओं को सिस्टम अनुप्रयोगों द्वारा इन आशय पैटर्न के उपयोग के लिए विशेष विशेषाधिकार नहीं देना चाहिए, या तीसरे पक्ष के अनुप्रयोगों को इन पैटर्न से जुड़ने और उन पर नियंत्रण रखने से नहीं रोकना चाहिए। इस निषेध में विशेष रूप से "चयनकर्ता" उपयोगकर्ता इंटरफ़ेस को अक्षम करना शामिल है, लेकिन यह इन्हीं तक सीमित नहीं है, जो उपयोगकर्ता को कई अनुप्रयोगों के बीच चयन करने की अनुमति देता है जो सभी समान इरादे पैटर्न को संभालते हैं।

3.2.3.3. आशय नामस्थान

डिवाइस कार्यान्वयन में कोई भी एंड्रॉइड घटक शामिल नहीं होना चाहिए जो एंड्रॉइड में किसी ACTION, CATEGORY, या अन्य कुंजी स्ट्रिंग का उपयोग करके किसी भी नए इरादे या प्रसारण इरादे पैटर्न का सम्मान करता है।* या com.android.* नेमस्पेस। डिवाइस कार्यान्वयनकर्ताओं को किसी भी एंड्रॉइड घटक को शामिल नहीं करना चाहिए जो किसी अन्य संगठन से संबंधित पैकेज स्पेस में एक्शन, श्रेणी, या अन्य कुंजी स्ट्रिंग का उपयोग करके किसी भी नए इरादे या प्रसारण इरादे पैटर्न का सम्मान करता है। डिवाइस कार्यान्वयनकर्ताओं को धारा 3.2.3.1 में सूचीबद्ध मुख्य ऐप्स द्वारा उपयोग किए गए किसी भी इंटेंट पैटर्न को बदलना या विस्तारित नहीं करना चाहिए। डिवाइस कार्यान्वयन में स्पष्ट रूप से और स्पष्ट रूप से अपने स्वयं के संगठन से जुड़े नामस्थानों का उपयोग करने वाले इरादे पैटर्न शामिल हो सकते हैं।

यह निषेध धारा 3.6 में जावा भाषा कक्षाओं के लिए निर्दिष्ट निषेध के अनुरूप है।

3.2.3.4. प्रसारण के इरादे

तृतीय-पक्ष एप्लिकेशन हार्डवेयर या सॉफ़्टवेयर वातावरण में परिवर्तनों के बारे में सूचित करने के लिए कुछ उद्देश्यों को प्रसारित करने के लिए प्लेटफ़ॉर्म पर भरोसा करते हैं। एंड्रॉइड-संगत उपकरणों को उचित सिस्टम घटनाओं के जवाब में सार्वजनिक प्रसारण इरादों को प्रसारित करना होगा। प्रसारण इरादे एसडीके दस्तावेज़ में वर्णित हैं।

3.3. मूल एपीआई संगतता

3.3.1 एप्लिकेशन बाइनरी इंटरफेस

डाल्विक में चल रहा प्रबंधित कोड उपयुक्त डिवाइस हार्डवेयर आर्किटेक्चर के लिए संकलित ईएलएफ .so फ़ाइल के रूप में एप्लिकेशन .apk फ़ाइल में प्रदान किए गए मूल कोड में कॉल कर सकता है। चूंकि मूल कोड अंतर्निहित प्रोसेसर तकनीक पर अत्यधिक निर्भर है, एंड्रॉइड docs/CPU-ARCH-ABIS.txt फ़ाइल में एंड्रॉइड NDK में कई एप्लिकेशन बाइनरी इंटरफेस (एबीआई) को परिभाषित करता है। यदि कोई उपकरण कार्यान्वयन एक या अधिक परिभाषित एबीआई के साथ संगत है, तो उसे नीचे दिए अनुसार एंड्रॉइड एनडीके के साथ संगतता लागू करनी चाहिए।

यदि किसी डिवाइस कार्यान्वयन में एंड्रॉइड एबीआई के लिए समर्थन शामिल है, तो यह:

  • मानक जावा नेटिव इंटरफ़ेस (जेएनआई) शब्दार्थ का उपयोग करके मूल कोड में कॉल करने के लिए प्रबंधित वातावरण में चल रहे कोड के लिए समर्थन शामिल होना चाहिए।
  • नीचे दी गई सूची में प्रत्येक आवश्यक लाइब्रेरी के साथ स्रोत-संगत (यानी हेडर संगत) और बाइनरी-संगत (एबीआई के लिए) होना चाहिए
  • android.os.Build.CPU_ABI API के माध्यम से डिवाइस द्वारा समर्थित मूल एप्लिकेशन बाइनरी इंटरफ़ेस (ABI) की सटीक रिपोर्ट अवश्य करें
  • केवल उन ABI की रिपोर्ट अवश्य करें जो Android NDK के नवीनतम संस्करण में दस्तावेज़ित हैं, फ़ाइल docs/CPU-ARCH-ABIS.txt में
  • अपस्ट्रीम एंड्रॉइड ओपन सोर्स प्रोजेक्ट में उपलब्ध सोर्स कोड और हेडर फ़ाइलों का उपयोग करके बनाया जाना चाहिए

निम्नलिखित मूल कोड एपीआई उन ऐप्स के लिए उपलब्ध होने चाहिए जिनमें मूल कोड शामिल है:

  • libc (सी लाइब्रेरी)
  • libm (गणित पुस्तकालय)
  • C++ के लिए न्यूनतम समर्थन
  • जेएनआई इंटरफ़ेस
  • लिबलॉग (एंड्रॉइड लॉगिंग)
  • libz (ज़्लिब संपीड़न)
  • libdl (डायनामिक लिंकर)
  • libGLESv1_CM.so (ओपनजीएल ईएस 1.0)
  • libGLESv2.so (OpenGL ES 2.0)
  • libEGL.so (मूल ओपनजीएल सतह प्रबंधन)
  • libjnigraphics.so
  • libOpenSLES.so (OpenSL ES 1.0.1 ऑडियो समर्थन)
  • libOpenMAXAL.so (OpenMAX AL 1.0.1 समर्थन)
  • libandroid.so (मूल एंड्रॉइड गतिविधि समर्थन)
  • ओपनजीएल के लिए समर्थन, जैसा कि नीचे बताया गया है

ध्यान दें कि एंड्रॉइड एनडीके के भविष्य के रिलीज अतिरिक्त एबीआई के लिए समर्थन पेश कर सकते हैं। यदि कोई उपकरण कार्यान्वयन मौजूदा पूर्वनिर्धारित एबीआई के साथ संगत नहीं है, तो उसे किसी भी एबीआई के लिए समर्थन की रिपोर्ट नहीं करनी चाहिए।

मूल कोड अनुकूलता चुनौतीपूर्ण है. इस कारण से, यह दोहराया जाना चाहिए कि अनुकूलता सुनिश्चित करने में सहायता के लिए डिवाइस कार्यान्वयनकर्ताओं को ऊपर सूचीबद्ध पुस्तकालयों के अपस्ट्रीम कार्यान्वयन का उपयोग करने के लिए बहुत दृढ़ता से प्रोत्साहित किया जाता है।

3.4. वेब अनुकूलता

3.4.1. वेबव्यू संगतता

एंड्रॉइड ओपन सोर्स कार्यान्वयन android.webkit.WebView को लागू करने के लिए WebKit रेंडरिंग इंजन का उपयोग करता है। क्योंकि वेब रेंडरिंग सिस्टम के लिए एक व्यापक परीक्षण सूट विकसित करना संभव नहीं है, डिवाइस कार्यान्वयनकर्ताओं को वेबव्यू कार्यान्वयन में वेबकिट के विशिष्ट अपस्ट्रीम बिल्ड का उपयोग करना होगा। विशेष रूप से:

  • डिवाइस कार्यान्वयन ' android.webkit.WebView कार्यान्वयन एंड्रॉइड 4.0 के लिए अपस्ट्रीम एंड्रॉइड ओपन सोर्स ट्री से 534.30 वेबकिट बिल्ड पर आधारित होना चाहिए। इस बिल्ड में WebView के लिए कार्यक्षमता और सुरक्षा सुधारों का एक विशिष्ट सेट शामिल है। डिवाइस कार्यान्वयनकर्ता वेबकिट कार्यान्वयन में अनुकूलन शामिल कर सकते हैं; हालाँकि, ऐसे किसी भी अनुकूलन से वेबव्यू के व्यवहार में बदलाव नहीं होना चाहिए, जिसमें रेंडरिंग व्यवहार भी शामिल है।
  • WebView द्वारा रिपोर्ट की गई उपयोगकर्ता एजेंट स्ट्रिंग इस प्रारूप में होनी चाहिए:
    Mozilla/5.0 (Linux; U; Android $(VERSION); $(LOCALE); $(MODEL) Build/$(BUILD)) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30
    • $(VERSION) स्ट्रिंग का मान android.os.Build.VERSION.RELEASE के मान के समान होना चाहिए
    • $(LOCALE) स्ट्रिंग का मान देश कोड और भाषा के लिए आईएसओ सम्मेलनों का पालन करना चाहिए, और डिवाइस के वर्तमान कॉन्फ़िगर किए गए स्थान को संदर्भित करना चाहिए
    • $(MODEL) स्ट्रिंग का मान android.os.Build.MODEL के मान के समान होना चाहिए
    • $(BUILD) स्ट्रिंग का मान android.os.Build.ID के मान के समान होना चाहिए

WebView घटक में यथासंभव HTML5 [ संसाधन, 11 ] के लिए समर्थन शामिल होना चाहिए। न्यूनतम रूप से, डिवाइस कार्यान्वयन को WebView में HTML5 से जुड़े प्रत्येक एपीआई का समर्थन करना चाहिए:

इसके अतिरिक्त, डिवाइस कार्यान्वयन को HTML5/W3C वेबस्टोरेज API [ संसाधन, 15 ] का समर्थन करना चाहिए, और HTML5/W3C IndexedDB API [ संसाधन, 16 ] का समर्थन करना चाहिए। ध्यान दें कि जैसे-जैसे वेब विकास मानक निकाय वेबस्टोरेज पर IndexedDB के पक्ष में बदलाव कर रहे हैं, IndexedDB को एंड्रॉइड के भविष्य के संस्करण में एक आवश्यक घटक बनने की उम्मीद है।

HTML5 एपीआई, सभी जावास्क्रिप्ट एपीआई की तरह, वेबव्यू में डिफ़ॉल्ट रूप से अक्षम होना चाहिए, जब तक कि डेवलपर उन्हें सामान्य एंड्रॉइड एपीआई के माध्यम से स्पष्ट रूप से सक्षम न कर दे।

3.4.2. ब्राउज़र संगतता

डिवाइस कार्यान्वयन में सामान्य उपयोगकर्ता वेब ब्राउज़िंग के लिए एक स्टैंडअलोन ब्राउज़र एप्लिकेशन शामिल होना चाहिए। स्टैंडअलोन ब्राउज़र WebKit के अलावा किसी अन्य ब्राउज़र तकनीक पर आधारित हो सकता है। हालाँकि, भले ही वैकल्पिक ब्राउज़र एप्लिकेशन का उपयोग किया जाता है, तृतीय-पक्ष एप्लिकेशन को प्रदान किया गया android.webkit.WebView घटक WebKit पर आधारित होना चाहिए, जैसा कि धारा 3.4.1 में वर्णित है।

कार्यान्वयन स्टैंडअलोन ब्राउज़र एप्लिकेशन में एक कस्टम उपयोगकर्ता एजेंट स्ट्रिंग भेज सकता है।

स्टैंडअलोन ब्राउज़र एप्लिकेशन (चाहे अपस्ट्रीम वेबकिट ब्राउज़र एप्लिकेशन पर आधारित हो या तीसरे पक्ष के प्रतिस्थापन पर) में यथासंभव HTML5 [ संसाधन, 11 ] के लिए समर्थन शामिल होना चाहिए। न्यूनतम रूप से, डिवाइस कार्यान्वयन को HTML5 से जुड़े प्रत्येक एपीआई का समर्थन करना चाहिए:

इसके अतिरिक्त, डिवाइस कार्यान्वयन को HTML5/W3C वेबस्टोरेज API [ संसाधन, 15 ] का समर्थन करना चाहिए, और HTML5/W3C IndexedDB API [ संसाधन, 16 ] का समर्थन करना चाहिए। ध्यान दें कि जैसे-जैसे वेब विकास मानक निकाय वेबस्टोरेज पर IndexedDB के पक्ष में बदलाव कर रहे हैं, IndexedDB को एंड्रॉइड के भविष्य के संस्करण में एक आवश्यक घटक बनने की उम्मीद है।

3.5. एपीआई व्यवहार संगतता

प्रत्येक एपीआई प्रकार (प्रबंधित, सॉफ्ट, देशी और वेब) का व्यवहार अपस्ट्रीम एंड्रॉइड ओपन सोर्स प्रोजेक्ट के पसंदीदा कार्यान्वयन के अनुरूप होना चाहिए [ संसाधन, 3 ]। अनुकूलता के कुछ विशिष्ट क्षेत्र हैं:

  • उपकरणों को मानक इरादे के व्यवहार या शब्दार्थ को नहीं बदलना चाहिए
  • उपकरणों को किसी विशेष प्रकार के सिस्टम घटक (जैसे सेवा, गतिविधि, सामग्री प्रदाता, आदि) के जीवनचक्र या जीवनचक्र शब्दार्थ में परिवर्तन नहीं करना चाहिए।
  • उपकरणों को मानक अनुमति के शब्दार्थ को नहीं बदलना चाहिए

उपरोक्त सूची व्यापक नहीं है. संगतता परीक्षण सूट (सीटीएस) व्यवहारिक अनुकूलता के लिए प्लेटफ़ॉर्म के महत्वपूर्ण हिस्सों का परीक्षण करता है, लेकिन सभी का नहीं। एंड्रॉइड ओपन सोर्स प्रोजेक्ट के साथ व्यवहारिक अनुकूलता सुनिश्चित करना कार्यान्वयनकर्ता की जिम्मेदारी है। इस कारण से, डिवाइस कार्यान्वयनकर्ताओं को सिस्टम के महत्वपूर्ण हिस्सों को फिर से लागू करने के बजाय, जहां संभव हो, एंड्रॉइड ओपन सोर्स प्रोजेक्ट के माध्यम से उपलब्ध स्रोत कोड का उपयोग करना चाहिए।

3.6. एपीआई नेमस्पेस

एंड्रॉइड जावा प्रोग्रामिंग भाषा द्वारा परिभाषित पैकेज और क्लास नेमस्पेस सम्मेलनों का पालन करता है। तृतीय-पक्ष अनुप्रयोगों के साथ अनुकूलता सुनिश्चित करने के लिए, डिवाइस कार्यान्वयनकर्ताओं को इन पैकेज नामस्थानों में कोई निषिद्ध संशोधन (नीचे देखें) नहीं करना चाहिए:

  • जावा।*
  • जावैक्स.*
  • सूरज।*
  • एंड्रॉयड।*
  • com.android.*

निषिद्ध संशोधनों में शामिल हैं:

  • डिवाइस कार्यान्वयन को किसी भी विधि या वर्ग हस्ताक्षर को बदलकर, या कक्षाओं या वर्ग फ़ील्ड को हटाकर एंड्रॉइड प्लेटफ़ॉर्म पर सार्वजनिक रूप से उजागर एपीआई को संशोधित नहीं करना चाहिए।
  • डिवाइस कार्यान्वयनकर्ता एपीआई के अंतर्निहित कार्यान्वयन को संशोधित कर सकते हैं, लेकिन ऐसे संशोधनों से किसी भी सार्वजनिक रूप से उजागर एपीआई के बताए गए व्यवहार और जावा-भाषा हस्ताक्षर पर प्रभाव नहीं पड़ना चाहिए।
  • डिवाइस कार्यान्वयनकर्ताओं को उपरोक्त एपीआई में कोई भी सार्वजनिक रूप से उजागर तत्व (जैसे कक्षाएं या इंटरफेस, या मौजूदा कक्षाओं या इंटरफेस के लिए फ़ील्ड या विधियां) नहीं जोड़ना चाहिए।

"सार्वजनिक रूप से उजागर तत्व" कोई भी निर्माण है जो अपस्ट्रीम एंड्रॉइड स्रोत कोड में उपयोग किए गए "@hide" मार्कर से सजाया नहीं गया है। दूसरे शब्दों में, डिवाइस कार्यान्वयनकर्ताओं को ऊपर बताए गए नामस्थानों में नए एपीआई प्रदर्शित नहीं करने चाहिए या मौजूदा एपीआई में बदलाव नहीं करना चाहिए। डिवाइस कार्यान्वयनकर्ता केवल आंतरिक संशोधन कर सकते हैं, लेकिन उन संशोधनों का विज्ञापन नहीं किया जाना चाहिए या अन्यथा डेवलपर्स के सामने उजागर नहीं किया जाना चाहिए।

डिवाइस कार्यान्वयनकर्ता कस्टम एपीआई जोड़ सकते हैं, लेकिन ऐसे किसी भी एपीआई को किसी अन्य संगठन के स्वामित्व वाले या संदर्भित नामस्थान में नहीं होना चाहिए। उदाहरण के लिए, डिवाइस कार्यान्वयनकर्ताओं को com.google.* या समान नेमस्पेस में API नहीं जोड़ना चाहिए; केवल Google ही ऐसा कर सकता है. इसी प्रकार, Google को अन्य कंपनियों के नामस्थानों में API नहीं जोड़ना चाहिए। इसके अतिरिक्त, यदि किसी डिवाइस कार्यान्वयन में मानक एंड्रॉइड नेमस्पेस के बाहर कस्टम एपीआई शामिल हैं, तो उन एपीआई को एंड्रॉइड साझा लाइब्रेरी में पैक किया जाना चाहिए ताकि केवल वे ऐप्स जो स्पष्ट रूप से उनका उपयोग करते हैं ( <uses-library> तंत्र के माध्यम से) बढ़ी हुई मेमोरी उपयोग से प्रभावित होते हैं ऐसे एपीआई की.

यदि कोई डिवाइस कार्यान्वयनकर्ता उपरोक्त पैकेज नेमस्पेस में से किसी एक को बेहतर बनाने का प्रस्ताव करता है (जैसे कि मौजूदा एपीआई में उपयोगी नई कार्यक्षमता जोड़कर, या एक नया एपीआई जोड़कर), तो कार्यान्वयनकर्ता को source.android.com पर जाना चाहिए और परिवर्तनों में योगदान देने की प्रक्रिया शुरू करनी चाहिए और कोड, उस साइट पर दी गई जानकारी के अनुसार।

ध्यान दें कि उपरोक्त प्रतिबंध जावा प्रोग्रामिंग भाषा में एपीआई के नामकरण के लिए मानक परंपराओं के अनुरूप हैं; इस खंड का उद्देश्य केवल उन परंपराओं को सुदृढ़ करना और इस अनुकूलता परिभाषा में शामिल करके उन्हें बाध्यकारी बनाना है।

3.7. वर्चुअल मशीन संगतता

डिवाइस कार्यान्वयन को पूर्ण डेल्विक एक्ज़ीक्यूटेबल (DEX) बाइटकोड विनिर्देश और डेल्विक वर्चुअल मशीन शब्दार्थ का समर्थन करना चाहिए [ संसाधन, 17 ]।

डिवाइस कार्यान्वयन को अपस्ट्रीम एंड्रॉइड प्लेटफ़ॉर्म के अनुसार और निम्न तालिका द्वारा निर्दिष्ट अनुसार मेमोरी आवंटित करने के लिए डाल्विक को कॉन्फ़िगर करना होगा। (स्क्रीन आकार और स्क्रीन घनत्व परिभाषाओं के लिए धारा 7.1.1 देखें।)

ध्यान दें कि नीचे निर्दिष्ट मेमोरी मानों को न्यूनतम मान माना जाता है, और डिवाइस कार्यान्वयन प्रति एप्लिकेशन अधिक मेमोरी आवंटित कर सकता है।

स्क्रीन का साईज़ स्क्रीन घनत्व अनुप्रयोग मेमोरी
छोटा/सामान्य/बड़ा एलडीपीआई/एमडीपीआई 16एमबी
छोटा/सामान्य/बड़ा टीवीडीपीआई/एचडीपीआई 32एमबी
छोटा/सामान्य/बड़ा xhdpi 64एमबी
एक्स बड़े एमडीपीआई 32एमबी
एक्स बड़े टीवीडीपीआई/एचडीपीआई 64एमबी
एक्स बड़े xhdpi 128एमबी

3.8. उपयोगकर्ता इंटरफ़ेस अनुकूलता

3.8.1. विजेट

एंड्रॉइड एक घटक प्रकार और संबंधित एपीआई और जीवनचक्र को परिभाषित करता है जो एप्लिकेशन को अंतिम उपयोगकर्ता के लिए "ऐपविजेट" प्रदर्शित करने की अनुमति देता है [ संसाधन, 18 ]। एंड्रॉइड ओपन सोर्स संदर्भ रिलीज़ में एक लॉन्चर एप्लिकेशन शामिल है जिसमें उपयोगकर्ता इंटरफ़ेस सुविधाएं शामिल हैं जो उपयोगकर्ता को होम स्क्रीन से ऐपविजेट्स जोड़ने, देखने और हटाने की अनुमति देती हैं।

डिवाइस कार्यान्वयन संदर्भ लॉन्चर (यानी होम स्क्रीन) के विकल्प को प्रतिस्थापित कर सकता है। वैकल्पिक लॉन्चर्स में AppWidgets के लिए अंतर्निहित समर्थन शामिल होना चाहिए, और सीधे लॉन्चर के भीतर AppWidgets को जोड़ने, कॉन्फ़िगर करने, देखने और हटाने के लिए उपयोगकर्ता इंटरफ़ेस सामर्थ्य को उजागर करना चाहिए। वैकल्पिक लॉन्चर इन उपयोगकर्ता इंटरफ़ेस तत्वों को छोड़ सकते हैं; हालाँकि, यदि उन्हें छोड़ दिया जाता है, तो डिवाइस कार्यान्वयन को लॉन्चर से सुलभ एक अलग एप्लिकेशन प्रदान करना होगा जो उपयोगकर्ताओं को ऐपविजेट्स को जोड़ने, कॉन्फ़िगर करने, देखने और हटाने की अनुमति देता है।

डिवाइस कार्यान्वयन को मानक ग्रिड आकार में 4 x 4 विजेट प्रस्तुत करने में सक्षम होना चाहिए। (विवरण के लिए एंड्रॉइड एसडीके दस्तावेज़ [ संसाधन, 18 ] में ऐप विजेट डिज़ाइन दिशानिर्देश देखें।

3.8.2. सूचनाएं

एंड्रॉइड में एपीआई शामिल हैं जो डेवलपर्स को डिवाइस के हार्डवेयर और सॉफ्टवेयर सुविधाओं का उपयोग करके उल्लेखनीय घटनाओं [ संसाधन, 19 ] के उपयोगकर्ताओं को सूचित करने की अनुमति देते हैं।

कुछ एपीआई अनुप्रयोगों को हार्डवेयर, विशेष रूप से ध्वनि, कंपन और प्रकाश का उपयोग करके सूचनाएं निष्पादित करने या ध्यान आकर्षित करने की अनुमति देते हैं। डिवाइस कार्यान्वयन को उन सूचनाओं का समर्थन करना चाहिए जो हार्डवेयर सुविधाओं का उपयोग करते हैं, जैसा कि एसडीके दस्तावेज़ में वर्णित है, और डिवाइस कार्यान्वयन हार्डवेयर के साथ संभव सीमा तक। उदाहरण के लिए, यदि किसी उपकरण कार्यान्वयन में वाइब्रेटर शामिल है, तो उसे कंपन एपीआई को सही ढंग से लागू करना होगा। यदि किसी डिवाइस कार्यान्वयन में हार्डवेयर की कमी है, तो संबंधित एपीआई को नो-ऑप्स के रूप में लागू किया जाना चाहिए। ध्यान दें कि यह व्यवहार आगे धारा 7 में विस्तृत है।

इसके अतिरिक्त, कार्यान्वयन को एपीआई [ संसाधन, 20 ], या स्टेटस/सिस्टम बार आइकन स्टाइल गाइड [ संसाधन, 21 ] में प्रदान किए गए सभी संसाधनों (आइकन, ध्वनि फ़ाइलें इत्यादि) को सही ढंग से प्रस्तुत करना होगा। डिवाइस कार्यान्वयनकर्ता सूचनाओं के लिए संदर्भ एंड्रॉइड ओपन सोर्स कार्यान्वयन द्वारा प्रदान किए गए वैकल्पिक उपयोगकर्ता अनुभव की तुलना में वैकल्पिक उपयोगकर्ता अनुभव प्रदान कर सकते हैं; हालाँकि, ऐसी वैकल्पिक अधिसूचना प्रणालियों को ऊपर बताए अनुसार मौजूदा अधिसूचना संसाधनों का समर्थन करना चाहिए।

एंड्रॉइड 4.0 में रिच नोटिफिकेशन के लिए समर्थन शामिल है, जैसे चालू नोटिफिकेशन के लिए इंटरैक्टिव व्यू। डिवाइस कार्यान्वयन को समृद्ध सूचनाओं को ठीक से प्रदर्शित और निष्पादित करना होगा, जैसा कि एंड्रॉइड एपीआई में दर्ज किया गया है।

एंड्रॉइड में एपीआई [ संसाधन, 22 ] शामिल हैं जो डेवलपर्स को अपने एप्लिकेशन में खोज को शामिल करने और अपने एप्लिकेशन के डेटा को वैश्विक सिस्टम खोज में उजागर करने की अनुमति देते हैं। सामान्यतया, इस कार्यक्षमता में एक एकल, सिस्टम-व्यापी उपयोगकर्ता इंटरफ़ेस शामिल होता है जो उपयोगकर्ताओं को क्वेरी दर्ज करने की अनुमति देता है, उपयोगकर्ताओं द्वारा टाइप किए जाने पर सुझाव प्रदर्शित करता है और परिणाम प्रदर्शित करता है। एंड्रॉइड एपीआई डेवलपर्स को अपने स्वयं के ऐप्स के भीतर खोज प्रदान करने के लिए इस इंटरफ़ेस का पुन: उपयोग करने की अनुमति देता है, और डेवलपर्स को सामान्य वैश्विक खोज उपयोगकर्ता इंटरफ़ेस पर परिणाम प्रदान करने की अनुमति देता है।

डिवाइस कार्यान्वयन में उपयोगकर्ता इनपुट के जवाब में वास्तविक समय के सुझावों में सक्षम एक एकल, साझा, सिस्टम-वाइड खोज उपयोगकर्ता इंटरफ़ेस शामिल होना चाहिए। डिवाइस कार्यान्वयन को एपीआई को लागू करना होगा जो डेवलपर्स को अपने स्वयं के अनुप्रयोगों के भीतर खोज प्रदान करने के लिए इस उपयोगकर्ता इंटरफ़ेस का पुन: उपयोग करने की अनुमति देता है। डिवाइस कार्यान्वयन को एपीआई को लागू करना होगा जो तृतीय-पक्ष एप्लिकेशन को वैश्विक खोज मोड में चलाने पर खोज बॉक्स में सुझाव जोड़ने की अनुमति देता है। यदि कोई तृतीय-पक्ष एप्लिकेशन इंस्टॉल नहीं किया जाता है जो इस कार्यक्षमता का उपयोग करते हैं, तो डिफ़ॉल्ट व्यवहार वेब खोज इंजन परिणामों और सुझावों को प्रदर्शित करने के लिए होना चाहिए।

3.8.4. टोस्ट

एप्लिकेशन "टोस्ट" एपीआई ([ संसाधनों, 23 ] में परिभाषित) का उपयोग अंत उपयोगकर्ता को लघु गैर-मोडल तार प्रदर्शित करने के लिए कर सकते हैं, जो समय की संक्षिप्त अवधि के बाद गायब हो जाते हैं। डिवाइस कार्यान्वयन को कुछ उच्च-दृश्यता तरीके से उपयोगकर्ताओं को समाप्त करने के लिए एप्लिकेशन से टोस्ट प्रदर्शित करना चाहिए।

3.8.5. विषय-वस्तु

एंड्रॉइड एक संपूर्ण गतिविधि या एप्लिकेशन में शैलियों को लागू करने के लिए अनुप्रयोगों के लिए एक तंत्र के रूप में "थीम" प्रदान करता है। एंड्रॉइड 3.0 ने एप्लिकेशन डेवलपर्स के लिए परिभाषित शैलियों के एक सेट के रूप में एक नया "होलो" या "होलोग्राफिक" थीम पेश की, यदि वे होलो थीम लुक से मेल खाना चाहते हैं और एंड्रॉइड एसडीके [ संसाधन, 24 ] द्वारा परिभाषित के रूप में महसूस करते हैं। डिवाइस कार्यान्वयन को अनुप्रयोगों [ संसाधन, 25 ] के संपर्क में आने वाले किसी भी होलो थीम विशेषताओं में से किसी को भी नहीं बदलना चाहिए।

Android 4.0 एप्लिकेशन डेवलपर्स के लिए परिभाषित शैलियों के एक सेट के रूप में एक नया "डिवाइस डिफ़ॉल्ट" थीम का परिचय देता है, यदि वे डिवाइस के कार्यान्वयनकर्ता द्वारा परिभाषित डिवाइस थीम के लुक और फील से मेल करना चाहते हैं। डिवाइस कार्यान्वयन अनुप्रयोगों [ संसाधन, 25 ] के संपर्क में आने वाले devicedefault विषय विशेषताओं को संशोधित कर सकते हैं।

3.8.6. लाइव वॉलपेपर

एंड्रॉइड एक घटक प्रकार और इसी एपीआई और जीवनचक्र को परिभाषित करता है जो अनुप्रयोगों को अंतिम उपयोगकर्ता [ संसाधन, 26 ] के लिए एक या एक से अधिक "लाइव वॉलपेपर" को उजागर करने की अनुमति देता है। लाइव वॉलपेपर सीमित इनपुट क्षमताओं के साथ एनिमेशन, पैटर्न, या समान छवियां हैं जो अन्य अनुप्रयोगों के पीछे एक वॉलपेपर के रूप में प्रदर्शित करते हैं।

हार्डवेयर को लाइव वॉलपेपर को मज़बूती से चलाने में सक्षम माना जाता है यदि यह सभी लाइव वॉलपेपर को चला सकता है, कार्यक्षमता पर कोई सीमा नहीं है, एक उचित फ्रैमरेट पर अन्य अनुप्रयोगों पर कोई प्रतिकूल प्रभाव नहीं है। यदि हार्डवेयर में सीमाएं वॉलपेपर और/या अनुप्रयोगों को दुर्घटनाग्रस्त, खराबी, अत्यधिक सीपीयू या बैटरी पावर का उपभोग करने या अस्वीकार्य रूप से कम फ्रेम दरों पर चलाने के कारण, हार्डवेयर को लाइव वॉलपेपर चलाने में असमर्थ माना जाता है। एक उदाहरण के रूप में, कुछ लाइव वॉलपेपर अपनी सामग्री को प्रस्तुत करने के लिए एक खुले GL 1.0 या 2.0 संदर्भ का उपयोग कर सकते हैं। लाइव वॉलपेपर हार्डवेयर पर मज़बूती से नहीं चलेगा जो कई OpenGL संदर्भों का समर्थन नहीं करता है क्योंकि एक OpenGL संदर्भ का लाइव वॉलपेपर उपयोग अन्य अनुप्रयोगों के साथ संघर्ष कर सकता है जो OpenGL संदर्भ का भी उपयोग करते हैं।

लाइव वॉलपेपर चलाने में सक्षम डिवाइस कार्यान्वयन मज़बूती से ऊपर वर्णित के रूप में लाइव वॉलपेपर को लागू करना चाहिए। डिवाइस कार्यान्वयन लाइव वॉलपेपर को मज़बूती से नहीं चलाने के लिए निर्धारित किया गया है जैसा कि ऊपर वर्णित है, लाइव वॉलपेपर को लागू नहीं करना चाहिए।

3.8.7. हाल के अनुप्रयोग प्रदर्शन

अपस्ट्रीम एंड्रॉइड 4.0 सोर्स कोड में एप्लिकेशन की ग्राफिकल स्टेट की थंबनेल छवि का उपयोग करके हाल के एप्लिकेशन को प्रदर्शित करने के लिए एक उपयोगकर्ता इंटरफ़ेस शामिल है, जिस समय उपयोगकर्ता ने आखिरी बार एप्लिकेशन को छोड़ दिया था। डिवाइस कार्यान्वयन इस उपयोगकर्ता इंटरफ़ेस को बदल सकते हैं या समाप्त कर सकते हैं; हालांकि, एंड्रॉइड के भविष्य के संस्करण को इस कार्यक्षमता का अधिक व्यापक उपयोग करने की योजना है। डिवाइस कार्यान्वयन को हाल के एप्लिकेशन के लिए अपस्ट्रीम एंड्रॉइड 4.0 यूजर इंटरफेस (या एक समान थंबनेल-आधारित इंटरफ़ेस) का उपयोग करने के लिए दृढ़ता से प्रोत्साहित किया जाता है, या फिर वे एंड्रॉइड के भविष्य के संस्करण के साथ संगत नहीं हो सकते हैं।

3.8.8. इनपुट प्रबंधन सेटिंग्स

Android 4.0 में इनपुट प्रबंधन इंजन के लिए समर्थन शामिल है। Android 4.0 API कस्टम ऐप IME को उपयोगकर्ता-ट्यून करने योग्य सेटिंग्स निर्दिष्ट करने की अनुमति देता है। डिवाइस कार्यान्वयन में उपयोगकर्ता के लिए हर समय IME सेटिंग्स तक पहुंचने का एक तरीका शामिल होना चाहिए जब एक IME जो ऐसी उपयोगकर्ता सेटिंग्स प्रदान करता है, प्रदर्शित होता है।

3.9 डिवाइस प्रशासन

एंड्रॉइड 4.0 में ऐसी विशेषताएं शामिल हैं जो सुरक्षा-जागरूक एप्लिकेशन को सिस्टम स्तर पर डिवाइस प्रशासन कार्यों को करने की अनुमति देती हैं, जैसे कि पासवर्ड नीतियों को लागू करना या एंड्रॉइड डिवाइस प्रशासन एपीआई [ संसाधन, 27 ] के माध्यम से रिमोट वाइप करना। डिवाइस कार्यान्वयन को DevicePolicyManager क्लास [ संसाधन, 28 ] का कार्यान्वयन प्रदान करना चाहिए, और एंड्रॉइड एसडीके प्रलेखन [ संसाधन, 27 ] में परिभाषित डिवाइस प्रशासन नीतियों की पूरी श्रृंखला का समर्थन करना चाहिए।

यदि डिवाइस कार्यान्वयन डिवाइस प्रशासन नीतियों की पूरी श्रृंखला का समर्थन नहीं करते हैं, तो उन्हें डिवाइस प्रशासन अनुप्रयोगों को सक्षम करने की अनुमति नहीं देनी चाहिए। विशेष रूप से, यदि कोई डिवाइस सभी डिवाइस प्रशासन नीतियों का समर्थन नहीं करता है, तो डिवाइस कार्यान्वयन को android.app.admin.DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN के इरादे का जवाब देना चाहिए, लेकिन उपयोगकर्ता को सूचित करते हुए एक संदेश प्रदर्शित करना होगा कि डिवाइस डिवाइस प्रशासन का समर्थन नहीं करता है।

3.10 पहुंच

Android 4.0 एक एक्सेसिबिलिटी लेयर प्रदान करता है जो उपयोगकर्ताओं को विकलांगता से अधिक आसानी से नेविगेट करने में मदद करता है। इसके अलावा, एंड्रॉइड 4.0 प्लेटफ़ॉर्म एपीआई प्रदान करता है जो एक्सेसिबिलिटी सर्विस कार्यान्वयन को उपयोगकर्ता और सिस्टम इवेंट्स के लिए कॉलबैक प्राप्त करने और वैकल्पिक प्रतिक्रिया तंत्र उत्पन्न करने में सक्षम बनाता है, जैसे कि टेक्स्ट-टू-स्पीच, हैप्टिक फीडबैक, और ट्रैकबॉल/डी-पैड नेविगेशन [ संसाधन, 29 ] . डिवाइस कार्यान्वयन को डिफ़ॉल्ट एंड्रॉइड कार्यान्वयन के अनुरूप एंड्रॉइड एक्सेसिबिलिटी फ्रेमवर्क का कार्यान्वयन प्रदान करना चाहिए। विशेष रूप से, डिवाइस कार्यान्वयन को निम्नलिखित आवश्यकताओं को पूरा करना होगा।

  • डिवाइस कार्यान्वयन को android.accessibilityservice API [ संसाधन, 30 ] के माध्यम से तीसरे पक्ष की पहुंच सेवा कार्यान्वयन का समर्थन करना चाहिए।
  • डिवाइस कार्यान्वयन को AccessibilityEvent s उत्पन्न करना होगा और इन घटनाओं को सभी पंजीकृत AccessibilityService कार्यान्वयन के लिए डिफ़ॉल्ट Android कार्यान्वयन के अनुरूप तरीके से वितरित करना होगा।
  • डिवाइस कार्यान्वयन को एक्सेसिबिलिटी सेवाओं को सक्षम और अक्षम करने के लिए एक उपयोगकर्ता-सुलभ तंत्र प्रदान करना चाहिए, और android.provider.Settings.ACTION_ACCESSIBILITY_SETTINGS इरादे के जवाब में इस इंटरफ़ेस को प्रदर्शित करना होगा।

इसके अतिरिक्त, डिवाइस कार्यान्वयन को डिवाइस पर एक एक्सेसिबिलिटी सेवा का कार्यान्वयन प्रदान करना चाहिए, और डिवाइस सेटअप के दौरान एक्सेसिबिलिटी सर्विस को सक्षम करने के लिए उपयोगकर्ताओं को एक तंत्र प्रदान करना चाहिए। एक एक्सेसिबिलिटी सर्विस का एक खुला स्रोत कार्यान्वयन आंखों से मुक्त परियोजना [ संसाधन, 31 ] से उपलब्ध है।

3.11 पाठ-से-भाषण

एंड्रॉइड 4.0 में एपीआई शामिल हैं जो एप्लिकेशन को टेक्स्ट-टू-स्पीच (टीटीएस) सेवाओं का उपयोग करने की अनुमति देते हैं, और सेवा प्रदाताओं को टीटीएस सेवाओं के कार्यान्वयन प्रदान करने की अनुमति देता है [ संसाधन, 32 ]। डिवाइस कार्यान्वयन को एंड्रॉइड टीटीएस फ्रेमवर्क से संबंधित इन आवश्यकताओं को पूरा करना होगा:

  • डिवाइस कार्यान्वयन को एंड्रॉइड टीटीएस फ्रेमवर्क एपीआई का समर्थन करना चाहिए और डिवाइस पर उपलब्ध भाषाओं का समर्थन करने वाला टीटीएस इंजन शामिल होना चाहिए। ध्यान दें कि अपस्ट्रीम एंड्रॉइड ओपन सोर्स सॉफ्टवेयर में एक पूर्ण-विशेषताओं वाले टीटीएस इंजन कार्यान्वयन शामिल हैं।
  • डिवाइस कार्यान्वयन को तृतीय-पक्ष टीटीएस इंजन की स्थापना का समर्थन करना चाहिए।
  • डिवाइस कार्यान्वयन को एक उपयोगकर्ता-सुलभ इंटरफ़ेस प्रदान करना होगा जो उपयोगकर्ताओं को सिस्टम स्तर पर उपयोग के लिए TTS इंजन का चयन करने की अनुमति देता है।

4. अनुप्रयोग पैकेजिंग संगतता

डिवाइस कार्यान्वयन को आधिकारिक एंड्रॉइड एसडीके [ संसाधन, 33 ] में शामिल "एएपीपी" टूल द्वारा उत्पन्न एंड्रॉइड ".APK" फ़ाइलों को स्थापित और चलाना होगा।

उपकरणों के कार्यान्वयन को या तो .APK [ संसाधन, 34 ], एंड्रॉइड मैनिफेस्ट [ संसाधन, 35 ], डेलविक बाइटकोड [ संसाधन, 17 ], या रेंडरस्क्रिप्ट बाइटकोड प्रारूपों को इस तरह से विस्तारित नहीं करना चाहिए। अन्य संगत उपकरण। डिवाइस कार्यान्वयनकर्ताओं को Dalvik के संदर्भ अपस्ट्रीम कार्यान्वयन और संदर्भ कार्यान्वयन के पैकेज प्रबंधन प्रणाली का उपयोग करना चाहिए।

5. मल्टीमीडिया संगतता

डिवाइस कार्यान्वयन में ऑडियो आउटपुट का कम से कम एक रूप शामिल होना चाहिए, जैसे कि स्पीकर, हेडफोन जैक, बाहरी स्पीकर कनेक्शन, आदि।

5.1. मीडिया कोडेक्स

डिवाइस कार्यान्वयन को एंड्रॉइड एसडीके प्रलेखन [ संसाधन, 58 ] में निर्दिष्ट कोर मीडिया प्रारूपों का समर्थन करना चाहिए, जहां इस दस्तावेज़ में स्पष्ट रूप से अनुमति दी गई है। विशेष रूप से, डिवाइस कार्यान्वयन को मीडिया प्रारूपों, एनकोडर, डिकोडर्स, फ़ाइल प्रकार और कंटेनर प्रारूपों को नीचे दिए गए तालिकाओं में परिभाषित किया जाना चाहिए। इन सभी कोडक को एंड्रॉइड ओपन सोर्स प्रोजेक्ट से पसंदीदा एंड्रॉइड कार्यान्वयन में सॉफ्टवेयर कार्यान्वयन के रूप में प्रदान किया जाता है।

कृपया ध्यान दें कि न तो Google और न ही खुले हैंडसेट गठबंधन कोई प्रतिनिधित्व करते हैं कि ये कोडेक तीसरे पक्ष के पेटेंट द्वारा अप्रभावित हैं। हार्डवेयर या सॉफ्टवेयर उत्पादों में इस स्रोत कोड का उपयोग करने का इरादा रखने वालों को सलाह दी जाती है कि इस कोड के कार्यान्वयन, ओपन सोर्स सॉफ्टवेयर या शेयरवेयर सहित, संबंधित पेटेंट धारकों से पेटेंट लाइसेंस की आवश्यकता हो सकती है।

ध्यान दें कि ये टेबल अधिकांश वीडियो कोडेक्स के लिए विशिष्ट बिटरेट आवश्यकताओं को सूचीबद्ध नहीं करते हैं क्योंकि वर्तमान डिवाइस हार्डवेयर जरूरी नहीं कि बिट्रेट्स का समर्थन करता है, जो कि संबंधित मानकों द्वारा निर्दिष्ट आवश्यक बिट्रेट्स के लिए बिल्कुल मैप करता है। इसके बजाय, डिवाइस कार्यान्वयन को हार्डवेयर पर उच्चतम बिटरेट व्यावहारिक का समर्थन करना चाहिए, विनिर्देशों द्वारा परिभाषित सीमा तक।

प्रकार प्रारूप / कोडेक एनकोडर डिकोडर विवरण फ़ाइल प्रकार (ओं) / कंटेनर प्रारूप
ऑडियो एएसी एलसी/एलटीपी आवश्यक
डिवाइस कार्यान्वयन के लिए आवश्यक है जिसमें माइक्रोफोन हार्डवेयर शामिल हैं और android.hardware.microphone परिभाषित करते हैं।
आवश्यक मोनो/स्टीरियो सामग्री 160 kbps तक मानक बिट दरों के किसी भी संयोजन में और 8 से 48kHz तक नमूनाकरण दरें
  • 3जीपीपी (.3जीपी)
  • एमपीईजी-4 (.mp4, .m4a)
  • ADTS RAW AAC (.AAC, Android 3.1+ में डिकोड, Android 4.0+ में एनकोड करें, ADIF समर्थित नहीं है)
  • MPEG-TS (.ts, नहीं, Android 3.0+)
HE-AACv1 (AAC+) आवश्यक
HE-AACv2 (उन्नत AAC+) आवश्यक
एएमआर-एनबी आवश्यक
डिवाइस कार्यान्वयन के लिए आवश्यक है जिसमें माइक्रोफोन हार्डवेयर शामिल हैं और android.hardware.microphone परिभाषित करते हैं।
आवश्यक 4.75 से 12.2 केबीपीएस का नमूना 8kHz पर 3जीपीपी (.3जीपी)
एएमआर-पश्चिम बंगाल आवश्यक
डिवाइस कार्यान्वयन के लिए आवश्यक है जिसमें माइक्रोफोन हार्डवेयर शामिल हैं और android.hardware.microphone परिभाषित करते हैं।
आवश्यक 16kHz पर 6.60 kbit/s से 23.85 kbit/s तक 9 दरें नमूनाकृत 3जीपीपी (.3जीपी)
एफएलएसी आवश्यक
(Android 3.1+)
मोनो/स्टीरियो (कोई मल्टीचैनल नहीं)। 48 किलोहर्ट्ज़ तक नमूना दरें (लेकिन 44.1 किलोहर्ट्ज़ आउटपुट वाले उपकरणों पर 44.1 किलोहर्ट्ज़ तक की सिफारिश की जाती है, क्योंकि 48 से 44.1 किलोहर्ट्ज़ डाउनसैंपलर में कम-पास फ़िल्टर शामिल नहीं होता है)। 16-बिट अनुशंसित; 24-बिट के लिए कोई आवेदन नहीं किया गया। केवल flac (.flac)
एमपी 3 आवश्यक मोनो/स्टीरियो 8-320Kbps स्थिरांक (CBR) या परिवर्तनीय बिट-दर (VBR) एमपी3 (.mp3)
मिडी आवश्यक MIDI प्रकार 0 और 1. DLS संस्करण 1 और 2. XMF और मोबाइल XMF। रिंगटोन प्रारूपों RTTTL/RTX, OTA और iMelody के लिए समर्थन
  • टाइप 0 और 1 (.mid, .xmf, .mxmf)
  • Rtttl/rtx (.rtttl, .rtx)
  • ओटा (.ota)
  • इमीलॉडी (.imy)
वॉर्बिस आवश्यक
  • Ogg (.ogg)
  • मैट्रोस्का (.mkv)
पीसीएम/वेव आवश्यक 8- और 16-बिट रैखिक पीसीएम (हार्डवेयर की सीमा तक की दर) लहर (.wav)
छवि जेपीईजी आवश्यक आवश्यक आधार+प्रगतिशील जेपीईजी (.jpg)
GIF आवश्यक Gif (.gif)
पीएनजी आवश्यक आवश्यक पीएनजी (.png)
बीएमपी आवश्यक बीएमपी (.बीएमपी)
वेबपी आवश्यक आवश्यक वेबप (.webp)
वीडियो एच .263 आवश्यक
डिवाइस कार्यान्वयन के लिए आवश्यक है जिसमें कैमरा हार्डवेयर शामिल है और android.hardware.camera या android.hardware.camera.front को परिभाषित करता है।
आवश्यक
  • 3जीपीपी (.3जीपी)
  • MPEG-4 (.MP4)
H.264 AVC आवश्यक
डिवाइस कार्यान्वयन के लिए आवश्यक है जिसमें कैमरा हार्डवेयर शामिल है और android.hardware.camera या android.hardware.camera.front को परिभाषित करता है।
आवश्यक बेसलाइन प्रोफ़ाइल (बीपी)
  • 3जीपीपी (.3जीपी)
  • MPEG-4 (.MP4)
  • MPEG-TS (.ts, AAC ऑडियो केवल, तलाश करने योग्य नहीं, Android 3.0+)
एमपीईजी -4 एसपी आवश्यक 3जीपीपी (.3जीपी)
वीपी8 आवश्यक
(Android 2.3.3+)
Webm (.webm) और Matroska (.mkv, Android 4.0+)

5.2 वीडियो एन्कोडिंग

Android डिवाइस कार्यान्वयन जिसमें एक रियर-फेसिंग कैमरा शामिल है और android.hardware.camera घोषित करना चाहिए, उन्हें निम्नलिखित वीडियो एन्कोडिंग प्रोफाइल का समर्थन करना चाहिए।

एसडी (निम्न गुणवत्ता) एसडी (उच्च गुणवत्ता) एचडी (जब हार्डवेयर द्वारा समर्थित)
वीडियो कोडेक H.264 बेसलाइन प्रोफाइल H.264 बेसलाइन प्रोफाइल H.264 बेसलाइन प्रोफाइल
वीडियो संकल्प 176 x 144 पीएक्स 480 x 360 पिक्सल 1280 x 720 पिक्सेल
वीडियो फ्रेम दर 12 एफपीएस 30 एफपीएस 30 एफपीएस
वीडियो बिटरेट 56 केबीपीएस 500 केबीपीएस या उच्चतर 2 एमबीपीएस या उच्चतर
ऑडियो कोडेक एएसी-नियंत्रण रेखा एएसी-नियंत्रण रेखा एएसी-नियंत्रण रेखा
ऑडियो चैनल 1 (मोनो) 2 (स्टीरियो) 2 (स्टीरियो)
ऑडियो बिटरेट 24 केबीपीएस 128 केबीपीएस 192 केबीपीएस

5.3. ऑडियो रिकॉर्डिंग

जब किसी एप्लिकेशन ने android.media.AudioRecord API का उपयोग किया है, तो एक ऑडियो स्ट्रीम रिकॉर्ड करना शुरू करने के लिए, डिवाइस कार्यान्वयन जिसमें माइक्रोफोन हार्डवेयर शामिल हैं और android.hardware.microphone की घोषणा करते हैं।

  • डिवाइस को लगभग फ्लैट आयाम बनाम आवृत्ति विशेषताओं का प्रदर्शन करना चाहिए; विशेष रूप से, of 3 डीबी, 100 हर्ट्ज से 4000 हर्ट्ज तक
  • ऑडियो इनपुट संवेदनशीलता को इस तरह सेट किया जाना चाहिए कि 1000 हर्ट्ज पर 90 डीबी साउंड पावर लेवल (एसपीएल) स्रोत 16-बिट नमूनों के लिए 2500 के आरएमएस की पैदावार करता है।
  • पीसीएम आयाम का स्तर माइक्रोफोन पर कम से कम 30 डीबी रेंज से -18 डीबी से +12 डीबी आरई 90 डीबी एसपीएल से कम से कम 30 डीबी रेंज पर इनपुट एसपीएल परिवर्तनों को ट्रैक करना चाहिए।
  • कुल हार्मोनिक विरूपण 90 डीबी एसपीएल इनपुट स्तर पर 100 हर्ट्ज से 4000 हर्ट्ज तक 1% से कम होना चाहिए।

उपरोक्त रिकॉर्डिंग विनिर्देशों के अलावा, जब किसी एप्लिकेशन ने android.media.MediaRecorder.AudioSource.VOICE_RECOGNITION ऑडियो स्रोत का उपयोग करके एक ऑडियो स्ट्रीम रिकॉर्ड करना शुरू कर दिया है:

  • शोर में कमी प्रसंस्करण, यदि मौजूद है, तो अक्षम होना चाहिए।
  • स्वचालित लाभ नियंत्रण, यदि मौजूद है, तो अक्षम होना चाहिए।

नोट: जबकि ऊपर उल्लिखित कुछ आवश्यकताओं को एंड्रॉइड 4.0 के लिए "चाहिए" के रूप में कहा गया है, भविष्य के संस्करण के लिए संगतता परिभाषा को इन्हें "चाहिए" में बदलने की योजना है। यही है, ये आवश्यकताएं एंड्रॉइड 4.0 में वैकल्पिक हैं, लेकिन भविष्य के संस्करण द्वारा आवश्यक होगी । एंड्रॉइड 4.0 को चलाने वाले मौजूदा और नए उपकरणों को एंड्रॉइड 4.0 में इन आवश्यकताओं को पूरा करने के लिए बहुत दृढ़ता से प्रोत्साहित किया जाता है, या वे भविष्य के संस्करण में अपग्रेड किए जाने पर एंड्रॉइड संगतता प्राप्त करने में सक्षम नहीं होंगे।

5.4. ऑडियो विलंबता

ऑडियो विलंबता को मोटे तौर पर अंतराल के रूप में परिभाषित किया जाता है जब कोई एप्लिकेशन ऑडियो प्लेबैक या रिकॉर्ड ऑपरेशन का अनुरोध करता है, और जब डिवाइस कार्यान्वयन वास्तव में ऑपरेशन शुरू करता है। अनुप्रयोगों के कई वर्ग इस तरह के ध्वनि प्रभाव या वीओआईपी संचार को प्राप्त करने के लिए, कम विलंबता पर भरोसा करते हैं। डिवाइस कार्यान्वयन जिसमें माइक्रोफोन हार्डवेयर शामिल हैं और android.hardware.microphone घोषित करें, इस खंड में उल्लिखित सभी ऑडियो विलंबता आवश्यकताओं को पूरा करना चाहिए। उन शर्तों के विवरण के लिए धारा 7 देखें जिनके तहत माइक्रोफोन हार्डवेयर डिवाइस कार्यान्वयन द्वारा छोड़ा जा सकता है।

इस अनुभाग के प्रयोजनों के लिए:

  • "कोल्ड आउटपुट लेटेंसी" को उस अंतराल के रूप में परिभाषित किया जाता है जब कोई एप्लिकेशन ऑडियो प्लेबैक का अनुरोध करता है और जब ध्वनि खेलना शुरू होती है, जब ऑडियो सिस्टम निष्क्रिय हो गया है और अनुरोध से पहले नीचे संचालित किया गया है
  • "वार्म आउटपुट लेटेंसी" को उस अंतराल के रूप में परिभाषित किया जाता है जब एक एप्लिकेशन ऑडियो प्लेबैक का अनुरोध करता है और जब ध्वनि खेलना शुरू होती है, जब ऑडियो सिस्टम हाल ही में उपयोग किया गया है, लेकिन वर्तमान में निष्क्रिय है (यानी, मौन है)
  • "निरंतर आउटपुट विलंबता" के बीच अंतराल के रूप में परिभाषित किया जाता है जब एक एप्लिकेशन एक नमूना बजाने के लिए और जब स्पीकर शारीरिक रूप से संबंधित ध्वनि खेलता है, जबकि डिवाइस वर्तमान में वापस ऑडियो खेल रहा है
  • "कोल्ड इनपुट लेटेंसी" के बीच अंतराल के रूप में परिभाषित किया गया है जब कोई एप्लिकेशन ऑडियो रिकॉर्डिंग का अनुरोध करता है और जब पहला नमूना अपने कॉलबैक के माध्यम से एप्लिकेशन को दिया जाता है, जब ऑडियो सिस्टम और माइक्रोफोन को निष्क्रिय कर दिया गया है और अनुरोध से पहले नीचे संचालित किया गया है
  • "निरंतर इनपुट विलंबता" को तब परिभाषित किया जाता है जब एक परिवेश ध्वनि होती है और जब उस ध्वनि के अनुरूप नमूना अपने कॉलबैक के माध्यम से एक रिकॉर्डिंग एप्लिकेशन में वितरित किया जाता है, जबकि डिवाइस रिकॉर्डिंग मोड में है

उपरोक्त परिभाषाओं का उपयोग करते हुए, डिवाइस कार्यान्वयन को इनमें से प्रत्येक गुण को प्रदर्शित करना चाहिए:

  • 100 मिलीसेकंड या उससे कम की कोल्ड आउटपुट विलंबता
  • 10 मिलीसेकंड या उससे कम की गर्म उत्पादन विलंबता
  • 45 मिलीसेकंड या उससे कम की निरंतर आउटपुट विलंबता
  • 100 मिलीसेकंड या उससे कम की कोल्ड इनपुट विलंबता
  • 50 मिलीसेकंड या उससे कम की निरंतर इनपुट विलंबता

नोट: जबकि ऊपर उल्लिखित आवश्यकताओं को एंड्रॉइड 4.0 के लिए "चाहिए" के रूप में कहा गया है, भविष्य के संस्करण के लिए संगतता परिभाषा को इन्हें "चाहिए" में बदलने की योजना है। यही है, ये आवश्यकताएं एंड्रॉइड 4.0 में वैकल्पिक हैं, लेकिन भविष्य के संस्करण द्वारा आवश्यक होगी । एंड्रॉइड 4.0 को चलाने वाले मौजूदा और नए उपकरणों को एंड्रॉइड 4.0 में इन आवश्यकताओं को पूरा करने के लिए बहुत दृढ़ता से प्रोत्साहित किया जाता है, या वे भविष्य के संस्करण में अपग्रेड किए जाने पर एंड्रॉइड संगतता प्राप्त करने में सक्षम नहीं होंगे।

यदि कोई डिवाइस कार्यान्वयन इस खंड की आवश्यकताओं को पूरा करता है, तो यह android.content.pm.PackageManager क्लास के माध्यम से "Android.hardware.audio.low-Latency" सुविधा की रिपोर्ट करके, कम-विलंबता ऑडियो के लिए समर्थन की रिपोर्ट कर सकता है। [ संसाधन, ३, ] इसके विपरीत, यदि डिवाइस कार्यान्वयन इन आवश्यकताओं को पूरा नहीं करता है, तो उसे कम-विलंबता ऑडियो के लिए समर्थन की रिपोर्ट नहीं करनी चाहिए।

5.5. नेटवर्क प्रोटोकॉल

Android SDK प्रलेखन [ संसाधन, 58 ] में निर्दिष्ट के रूप में उपकरणों को ऑडियो और वीडियो प्लेबैक के लिए मीडिया नेटवर्क प्रोटोकॉल का समर्थन करना चाहिए। विशेष रूप से, उपकरणों को निम्नलिखित मीडिया नेटवर्क प्रोटोकॉल का समर्थन करना चाहिए:

  • आरटीएसपी (आरटीपी, एसडीपी)
  • HTTP (ओं) प्रगतिशील स्ट्रीमिंग
  • HTTP (S) लाइव स्ट्रीमिंग ड्राफ्ट प्रोटोकॉल, संस्करण 3 [ संसाधन, 59 ]

6. डेवलपर उपकरण संगतता

डिवाइस कार्यान्वयन को एंड्रॉइड एसडीके में दिए गए एंड्रॉइड डेवलपर टूल्स का समर्थन करना चाहिए। विशेष रूप से, एंड्रॉइड-संगत उपकरणों के साथ संगत होना चाहिए:

  • एंड्रॉइड डिबग ब्रिज (एडीबी के रूप में जाना जाता है) [ संसाधन, 33 ]
    डिवाइस कार्यान्वयन को Android SDK में प्रलेखित सभी adb कार्यों का समर्थन करना चाहिए। डिवाइस-साइड adb डेमॉन डिफ़ॉल्ट रूप से निष्क्रिय होना चाहिए, और एंड्रॉइड डिबग ब्रिज को चालू करने के लिए एक उपयोगकर्ता-सुलभ तंत्र होना चाहिए।
  • Dalvik Debug मॉनिटर सेवा (DDMS के रूप में जाना जाता है) [ संसाधन, 33 ]
    डिवाइस कार्यान्वयन को Android SDK में प्रलेखित के रूप में सभी ddms सुविधाओं का समर्थन करना चाहिए। जैसा कि ddms adb का उपयोग करता है, ddms के लिए समर्थन डिफ़ॉल्ट रूप से निष्क्रिय होना चाहिए, लेकिन जब भी उपयोगकर्ता ने Android Debug Bridge को सक्रिय किया है, तो समर्थन किया जाना चाहिए।
  • बंदर [ संसाधन, 36 ]
    डिवाइस कार्यान्वयन में बंदर ढांचा शामिल होना चाहिए, और इसे उपयोग करने के लिए अनुप्रयोगों के लिए उपलब्ध कराना चाहिए।

अधिकांश लिनक्स-आधारित सिस्टम और Apple Macintosh सिस्टम अतिरिक्त समर्थन के बिना मानक Android SDK टूल का उपयोग करके Android उपकरणों को पहचानते हैं; हालांकि Microsoft Windows Systems को आमतौर पर नए Android उपकरणों के लिए एक ड्राइवर की आवश्यकता होती है। (उदाहरण के लिए, नए विक्रेता आईडी और कभी -कभी नए डिवाइस आईडी को विंडोज सिस्टम के लिए कस्टम यूएसबी ड्राइवरों की आवश्यकता होती है।) यदि एक डिवाइस कार्यान्वयन को adb टूल द्वारा पहचाना जाता है, जैसा कि मानक एंड्रॉइड एसडीके में प्रदान किया गया है, तो डिवाइस कार्यान्वयनकर्ताओं को डेवलपर्स को कनेक्ट करने की अनुमति देने वाले विंडोज ड्राइवरों को प्रदान करना होगा। adb प्रोटोकॉल का उपयोग करके डिवाइस। इन ड्राइवरों को 32-बिट और 64-बिट दोनों संस्करणों में विंडोज एक्सपी, विंडोज विस्टा और विंडोज 7 के लिए प्रदान किया जाना चाहिए।

7. हार्डवेयर अनुकूलता

यदि किसी डिवाइस में एक विशेष हार्डवेयर घटक शामिल होता है जिसमें तृतीय-पक्ष डेवलपर्स के लिए एक एपीआई होता है, तो डिवाइस कार्यान्वयन को उस एपीआई को लागू करना होगा जैसा कि एंड्रॉइड एसडीके प्रलेखन में वर्णित है। यदि एसडीके में एपीआई एक हार्डवेयर घटक के साथ बातचीत करता है, जिसे वैकल्पिक माना जाता है और डिवाइस कार्यान्वयन उस घटक के अधिकारी नहीं होता है:

  • घटक के एपीआई के लिए पूर्ण वर्ग की परिभाषाएं (एसडीके द्वारा प्रलेखित) के रूप में अभी भी मौजूद होना चाहिए
  • एपीआई के व्यवहार को किसी उचित फैशन में नो-ऑप्स के रूप में लागू किया जाना चाहिए
  • एपीआई विधियों को शून्य मान वापस करना होगा जहां एसडीके प्रलेखन द्वारा अनुमति दी गई है
  • एपीआई तरीकों को उन कक्षाओं के कार्यान्वयन को वापस करना होगा जहां एसडीके प्रलेखन द्वारा शून्य मान की अनुमति नहीं है
  • एपीआई विधियों को एसडीके प्रलेखन द्वारा प्रलेखित अपवादों को नहीं फेंकना चाहिए

एक परिदृश्य का एक विशिष्ट उदाहरण जहां ये आवश्यकताएं लागू होती हैं, वह है टेलीफोनी एपीआई: यहां तक ​​कि गैर-फोन उपकरणों पर भी, इन एपीआई को उचित नो-ऑप्स के रूप में लागू किया जाना चाहिए।

डिवाइस कार्यान्वयन को android.content.pm.PackageManager वर्ग पर getSystemAvailableFeatures() और hasSystemFeature(String) विधियों के माध्यम से सटीक हार्डवेयर कॉन्फ़िगरेशन जानकारी को सही ढंग से रिपोर्ट करना होगा। [ संसाधन, 37 ]

7.1. प्रदर्शन और ग्राफ़िक्स

एंड्रॉइड 4.0 में ऐसी सुविधाएं शामिल हैं जो डिवाइस के लिए उचित रूप से एप्लिकेशन परिसंपत्तियों और यूआई लेआउट को स्वचालित रूप से समायोजित करती हैं, ताकि यह सुनिश्चित किया जा सके कि तृतीय-पक्ष एप्लिकेशन विभिन्न प्रकार के हार्डवेयर कॉन्फ़िगरेशन [ संसाधन, 38 ] पर अच्छी तरह से चलते हैं। इस खंड में विस्तृत रूप से उपकरणों को इन एपीआई और व्यवहारों को ठीक से लागू करना चाहिए।

इस खंड में आवश्यकताओं द्वारा संदर्भित इकाइयों को निम्नानुसार परिभाषित किया गया है:

  • "भौतिक विकर्ण आकार" प्रदर्शन के प्रबुद्ध भाग के दो विरोधी कोनों के बीच इंच में दूरी है।
  • "डीपीआई" (जिसका अर्थ है "डॉट्स प्रति इंच") एक रैखिक क्षैतिज या 1 के ऊर्ध्वाधर अवधि द्वारा शामिल पिक्सेल की संख्या है। जहां डीपीआई मान सूचीबद्ध हैं, दोनों क्षैतिज और ऊर्ध्वाधर डीपीआई को सीमा के भीतर गिरना होगा।
  • "पहलू अनुपात" छोटे आयाम के लिए स्क्रीन के लंबे आयाम का अनुपात है। उदाहरण के लिए, 480x854 पिक्सल का प्रदर्शन 854 /480 = 1.779, या मोटे तौर पर "16: 9" होगा।
  • एक "घनत्व-स्वतंत्र पिक्सेल" या ("डीपी") एक 160 डीपीआई स्क्रीन के लिए सामान्यीकृत वर्चुअल पिक्सेल इकाई है, जिसे गणना की जाती है: pixels = dps * (density / 160)

7.1.1. स्क्रीन कॉन्फ़िगरेशन

स्क्रीन का साईज़

Android UI फ्रेमवर्क विभिन्न स्क्रीन आकारों की एक किस्म का समर्थन करता है, और android.content.res.Configuration.screenLayout के माध्यम से SCREENLAYOUT_SIZE_MASK के माध्यम से डिवाइस स्क्रीन आकार (उर्फ "स्क्रीन लेआउट") को क्वेरी करने की अनुमति देता है। डिवाइस कार्यान्वयन को एंड्रॉइड एसडीके प्रलेखन [ संसाधन, 38 ] में परिभाषित सही स्क्रीन आकार की रिपोर्ट करनी चाहिए और अपस्ट्रीम एंड्रॉइड प्लेटफॉर्म द्वारा निर्धारित किया गया है। विशेष रूप से, डिवाइस कार्यान्वयन को निम्नलिखित तार्किक घनत्व-स्वतंत्र पिक्सेल (डीपी) स्क्रीन आयामों के अनुसार सही स्क्रीन आकार की रिपोर्ट करनी चाहिए।

  • डिवाइस में कम से कम 426 डीपी एक्स 320 डीपी ('छोटा') के स्क्रीन आकार होने चाहिए
  • स्क्रीन आकार 'सामान्य' की रिपोर्ट करने वाले उपकरणों में कम से कम 470 डीपी x 320 डीपी के स्क्रीन आकार होने चाहिए
  • स्क्रीन आकार 'बड़े' की रिपोर्ट करने वाले उपकरणों में कम से कम 640 डीपी x 480 डीपी के स्क्रीन आकार होने चाहिए
  • स्क्रीन आकार 'xlarge' की रिपोर्ट करने वाले उपकरणों में कम से कम 960 dp x 720 dp के स्क्रीन आकार होने चाहिए

इसके अलावा, उपकरणों में भौतिक विकर्ण आकार में कम से कम 2.5 इंच के स्क्रीन आकार होने चाहिए।

उपकरणों को किसी भी समय अपने रिपोर्ट किए गए स्क्रीन आकार को नहीं बदलना चाहिए।

एप्लिकेशन वैकल्पिक रूप से इंगित करते हैं कि वे कौन से स्क्रीन आकारों का समर्थन करते हैं, जो कि AndroidManifest.xml फ़ाइल में <supports-screens> विशेषता के माध्यम से समर्थन करते हैं। डिवाइस कार्यान्वयन को Android SDK प्रलेखन में वर्णित के रूप में छोटे, सामान्य, बड़े और Xlarge स्क्रीन के लिए अनुप्रयोगों को सही ढंग से सम्मानित किया जाना चाहिए।

स्क्रीन पहलू अनुपात

पहलू अनुपात 1.3333 (4: 3) और 1.85 (16: 9) के बीच होना चाहिए।

स्क्रीन घनत्व

Android UI फ्रेमवर्क एप्लिकेशन डेवलपर्स को अनुप्रयोग संसाधनों को लक्षित करने में मदद करने के लिए मानक तार्किक घनत्व के एक सेट को परिभाषित करता है। डिवाइस कार्यान्वयन को android.util.DisplayMetrics API के माध्यम से निम्नलिखित तार्किक एंड्रॉइड फ्रेमवर्क घनत्व में से एक की रिपोर्ट करनी चाहिए, और इस मानक घनत्व पर अनुप्रयोगों को निष्पादित करना होगा।

  • 120 डीपीआई, जिसे 'एलडीपीआई' के रूप में जाना जाता है
  • 160 डीपीआई, जिसे 'एमडीपीआई' के रूप में जाना जाता है
  • 213 डीपीआई, जिसे 'टीवीडीपीआई' के रूप में जाना जाता है
  • 240 डीपीआई, जिसे 'एचडीपीआई' के रूप में जाना जाता है
  • 320 डीपीआई, जिसे 'XHDPI' के रूप में जाना जाता है
डिवाइस कार्यान्वयन को मानक एंड्रॉइड फ्रेमवर्क घनत्व को परिभाषित करना चाहिए जो स्क्रीन के भौतिक घनत्व के संख्यात्मक रूप से सबसे करीब है, जब तक कि तार्किक घनत्व न्यूनतम समर्थित स्क्रीन के नीचे रिपोर्ट किए गए स्क्रीन आकार को धक्का नहीं देता है। यदि मानक एंड्रॉइड फ्रेमवर्क घनत्व जो कि एक स्क्रीन आकार में भौतिक घनत्व के परिणामस्वरूप संख्यात्मक रूप से निकटतम है, जो कि सबसे छोटे समर्थित संगत स्क्रीन आकार (320 डीपी चौड़ाई) से छोटा है, तो डिवाइस कार्यान्वयन को अगले सबसे कम मानक एंड्रॉइड फ्रेमवर्क घनत्व की रिपोर्ट करनी चाहिए।

7.1.2. प्रदर्शन मेट्रिक्स

डिवाइस कार्यान्वयन को android.util.DisplayMetrics [ संसाधन, 39 ] में परिभाषित सभी प्रदर्शन मेट्रिक्स के लिए सही मूल्यों की रिपोर्ट करनी चाहिए।

7.1.3. स्क्रीन अनुकूलन

उपकरणों को या तो पोर्ट्रेट या लैंडस्केप स्क्रीन ओरिएंटेशन के लिए एप्लिकेशन द्वारा डायनेमिक ओरिएंटेशन का समर्थन करना चाहिए। यही है, डिवाइस को एक विशिष्ट स्क्रीन अभिविन्यास के लिए एप्लिकेशन के अनुरोध का सम्मान करना चाहिए। डिवाइस कार्यान्वयन डिफ़ॉल्ट के रूप में या तो पोर्ट्रेट या लैंडस्केप ओरिएंटेशन का चयन कर सकते हैं।

डिवाइस को डिवाइस के वर्तमान अभिविन्यास के लिए सही मूल्य की रिपोर्ट करनी चाहिए, जब भी Android.content.res.configuration.orientation, android.view.display.getOrientation (), या अन्य API के माध्यम से Queried।

अभिविन्यास बदलते समय उपकरणों को रिपोर्ट किए गए स्क्रीन आकार या घनत्व को नहीं बदलना चाहिए।

उपकरणों को रिपोर्ट करना चाहिए कि वे कौन से स्क्रीन ओरिएंटेशन का समर्थन करते हैं ( android.hardware.screen.portrait और/या android.hardware.screen.landscape ) और कम से कम एक समर्थित अभिविन्यास की रिपोर्ट करनी चाहिए। उदाहरण के लिए, एक निश्चित-उन्मुखीकरण परिदृश्य स्क्रीन के साथ एक उपकरण, जैसे कि टेलीविजन या लैपटॉप, को केवल android.hardware.screen.landscape रिपोर्ट करनी चाहिए।

7.1.4. 2 डी और 3 डी ग्राफिक्स त्वरण

डिवाइस कार्यान्वयन को OpenGL ES 1.0 और 2.0 दोनों का समर्थन करना चाहिए, जैसा कि Android SDK दस्तावेज़ों में सन्निहित और विस्तृत है। डिवाइस कार्यान्वयन को एंड्रॉइड रेंडरस्क्रिप्ट का भी समर्थन करना चाहिए, जैसा कि एंड्रॉइड एसडीके प्रलेखन [ संसाधन, 8 ] में विस्तृत है।

डिवाइस कार्यान्वयन भी ओपनजीएल ईएस 1.0 और 2.0 का समर्थन करने के रूप में खुद को सही ढंग से पहचानना चाहिए। वह है:

  • प्रबंधित एपीआई (जैसे कि GLES10.getString() विधि के माध्यम से) को OpenGL ES 1.0 और 2.0 के लिए समर्थन की रिपोर्ट करनी चाहिए
  • देशी C/C ++ OpenGL API (अर्थात, जो libgles_v1cm.so, libgles_v2.so, या libegl.so के माध्यम से ऐप्स के लिए उपलब्ध है, ओपनजीएल ईएस 1.0 और 2.0 के लिए समर्थन की रिपोर्ट करनी चाहिए।

डिवाइस कार्यान्वयन किसी भी वांछित OpenGL ES एक्सटेंशन को लागू कर सकते हैं। हालाँकि, डिवाइस कार्यान्वयन को OpenGL ES प्रबंधित और देशी API के माध्यम से रिपोर्ट करना होगा कि वे समर्थन करते हैं, और इसके विपरीत विस्तार स्ट्रिंग्स की रिपोर्ट नहीं करनी चाहिए जो वे समर्थन नहीं करते हैं।

ध्यान दें कि Android 4.0 में वैकल्पिक रूप से निर्दिष्ट करने के लिए एप्लिकेशन के लिए समर्थन शामिल है कि उन्हें विशिष्ट OpenGL बनावट संपीड़न प्रारूपों की आवश्यकता है। ये प्रारूप आमतौर पर विक्रेता-विशिष्ट होते हैं। किसी भी विशिष्ट बनावट संपीड़न प्रारूप को लागू करने के लिए एंड्रॉइड 4.0 द्वारा डिवाइस कार्यान्वयन की आवश्यकता नहीं है। हालांकि, उन्हें किसी भी बनावट संपीड़न प्रारूपों की सही रिपोर्ट करनी चाहिए जो वे समर्थन करते हैं, ओपनजीएल एपीआई में getString() विधि के माध्यम से।

Android 3.0 ने अनुप्रयोगों के लिए एक तंत्र पेश किया कि वे यह घोषित करने के लिए कि वे एक प्रकट टैग android:hardwareAccelerated या डायरेक्ट एपीआई कॉल [ संसाधन, 9 ]।

Android 4.0 में, डिवाइस कार्यान्वयन को डिफ़ॉल्ट रूप से हार्डवेयर त्वरण को सक्षम करना होगा, और हार्डवेयर त्वरण को अक्षम करना होगा यदि डेवलपर ने android:hardwareAccelerated="false" या हार्डवेयर त्वरण को सीधे एंड्रॉइड व्यू एपीआई के माध्यम से अक्षम करना।

इसके अलावा, डिवाइस कार्यान्वयन को हार्डवेयर त्वरण [ संसाधन, 9 ] पर एंड्रॉइड एसडीके प्रलेखन के अनुरूप व्यवहार का प्रदर्शन करना चाहिए।

Android 4.0 में एक TextureView ऑब्जेक्ट शामिल है जो डेवलपर्स को सीधे हार्डवेयर-त्वरित OpenGL ES बनावट को एक UI पदानुक्रम में लक्ष्य प्रदान करने के रूप में एकीकृत करने देता है। डिवाइस कार्यान्वयन को TextureView एपीआई का समर्थन करना चाहिए, और अपस्ट्रीम एंड्रॉइड कार्यान्वयन के साथ लगातार व्यवहार का प्रदर्शन करना चाहिए।

7.1.5. विरासत अनुप्रयोग संगतता मोड

Android 4.0 एक "संगतता मोड" निर्दिष्ट करता है जिसमें फ्रेमवर्क एक 'सामान्य' स्क्रीन आकार के बराबर (320dp की चौड़ाई) मोड में संचालित होता है, जो कि Android के पुराने संस्करणों के लिए विकसित नहीं किया गया विरासत अनुप्रयोगों के लाभ के लिए है जो पूर्व-तारीख स्क्रीन-आकार स्वतंत्रता के लिए विकसित नहीं होता है। डिवाइस कार्यान्वयन में अपस्ट्रीम एंड्रॉइड ओपन सोर्स कोड द्वारा कार्यान्वित के रूप में विरासत एप्लिकेशन संगतता मोड के लिए समर्थन शामिल होना चाहिए। अर्थात्, डिवाइस कार्यान्वयन को ट्रिगर या थ्रेसहोल्ड में परिवर्तन नहीं करना चाहिए, जिस पर संगतता मोड सक्रिय है, और संगतता मोड के व्यवहार को स्वयं नहीं बदलना चाहिए।

7.1.6. स्क्रीन के प्रकार

डिवाइस कार्यान्वयन स्क्रीन को दो प्रकारों में से एक के रूप में वर्गीकृत किया गया है:

  • फिक्स्ड-पिक्सेल डिस्प्ले कार्यान्वयन: स्क्रीन एक एकल पैनल है जो केवल एक पिक्सेल चौड़ाई और ऊंचाई का समर्थन करता है। आमतौर पर स्क्रीन को डिवाइस के साथ शारीरिक रूप से एकीकृत किया जाता है। उदाहरणों में मोबाइल फोन, टैबलेट और इतने पर शामिल हैं।
  • वैरिएबल-पिक्सेल डिस्प्ले कार्यान्वयन: डिवाइस कार्यान्वयन में या तो कोई एम्बेडेड स्क्रीन नहीं है और इसमें एक वीडियो आउटपुट पोर्ट शामिल है जैसे कि डिस्प्ले के लिए वीजीए या एचडीएमआई, या एक एम्बेडेड स्क्रीन है जो पिक्सेल आयामों को बदल सकती है। उदाहरणों में टीवी, सेट-टॉप बॉक्स, और इतने पर शामिल हैं।

नियत-पिक्सेल डिवाइस कार्यान्वयन

फिक्स्ड-पिक्सेल डिवाइस कार्यान्वयन किसी भी पिक्सेल आयामों की स्क्रीन का उपयोग कर सकते हैं, बशर्ते कि वे इस संगतता परिभाषा को परिभाषित आवश्यकताओं को पूरा करें।

फिक्स्ड-पिक्सेल कार्यान्वयन में बाहरी प्रदर्शन के साथ उपयोग के लिए एक वीडियो आउटपुट पोर्ट शामिल हो सकता है। हालाँकि, यदि उस डिस्प्ले का उपयोग कभी भी ऐप्स चलाने के लिए किया जाता है, तो डिवाइस को निम्न आवश्यकताओं को पूरा करना होगा:

  • डिवाइस को एक ही स्क्रीन कॉन्फ़िगरेशन की रिपोर्ट करनी चाहिए और मेट्रिक्स प्रदर्शित करनी चाहिए, जैसा कि तय-पिक्सेल डिस्प्ले के रूप में धारा 7.1.1 और 7.1.2 में विस्तृत है।
  • डिवाइस को फिक्स्ड-पिक्सेल डिस्प्ले के समान तार्किक घनत्व की रिपोर्ट करनी चाहिए।
  • डिवाइस को स्क्रीन आयामों की रिपोर्ट करनी चाहिए जो कि निश्चित-पिक्सेल डिस्प्ले के समान या बहुत करीब हैं।

For example, a tablet that is 7" diagonal size with a 1024x600 pixel resolution is considered a fixed-pixel large mdpi display implementation. If it contains a video output port that displays at 720p or 1080p, the device implementation MUST scale the output so that एप्लिकेशन केवल एक बड़ी एमडीपीआई विंडो में निष्पादित किए जाते हैं, भले ही फिक्स्ड-पिक्सेल डिस्प्ले या वीडियो आउटपुट पोर्ट उपयोग में हो।

परिवर्तनीय-पिक्सेल डिवाइस कार्यान्वयन

वैरिएबल-पिक्सेल डिवाइस कार्यान्वयन को 1280x720, या 1920x1080 (यानी, 720p या 1080p) में से एक या दोनों का समर्थन करना चाहिए। चर-पिक्सेल डिस्प्ले के साथ डिवाइस कार्यान्वयन किसी अन्य स्क्रीन कॉन्फ़िगरेशन या मोड का समर्थन नहीं करना चाहिए। चर-पिक्सेल स्क्रीन के साथ डिवाइस कार्यान्वयन रनटाइम या बूट-समय पर स्क्रीन कॉन्फ़िगरेशन या मोड बदल सकते हैं। उदाहरण के लिए, सेट-टॉप बॉक्स का उपयोगकर्ता 720p डिस्प्ले को 1080p डिस्प्ले के साथ बदल सकता है, और डिवाइस कार्यान्वयन तदनुसार समायोजित कर सकता है।

इसके अतिरिक्त, वैरिएबल-पिक्सेल डिवाइस कार्यान्वयन को इन पिक्सेल आयामों के लिए निम्नलिखित कॉन्फ़िगरेशन बकेट की रिपोर्ट करनी चाहिए:

  • 1280x720 (जिसे 720p के रूप में भी जाना जाता है): 'बड़े' स्क्रीन आकार, 'TVDPI' (213 dpi) घनत्व
  • 1920x1080 (1080p के रूप में भी जाना जाता है): 'बड़े' स्क्रीन आकार, 'XHDPI' (320 dpi) घनत्व

स्पष्टता के लिए, चर पिक्सेल आयामों के साथ डिवाइस कार्यान्वयन एंड्रॉइड 4.0 में 720p या 1080p तक सीमित हैं, और ऊपर उल्लेखित के रूप में स्क्रीन आकार और घनत्व बाल्टी की रिपोर्ट करने के लिए कॉन्फ़िगर किया जाना चाहिए।

7.1.7. स्क्रीन प्रौद्योगिकी

Android प्लेटफ़ॉर्म में API शामिल हैं जो एप्लिकेशन को डिस्प्ले में समृद्ध ग्राफिक्स प्रदान करने की अनुमति देते हैं। जब तक इस दस्तावेज़ में विशेष रूप से अनुमति नहीं दी जाती है, तब तक डिवाइस को इन सभी एपीआई को एंड्रॉइड एसडीके द्वारा परिभाषित किया जाना चाहिए। विशेष रूप से:

  • उपकरणों को 16-बिट रंग ग्राफिक्स प्रदान करने में सक्षम डिस्प्ले का समर्थन करना चाहिए और 24-बिट रंग ग्राफिक्स में सक्षम प्रदर्शनों का समर्थन करना चाहिए।
  • डिवाइस को एनिमेशन प्रदान करने में सक्षम डिस्प्ले का समर्थन करना चाहिए।
  • उपयोग की जाने वाली डिस्प्ले तकनीक में 0.9 और 1.1 के बीच पिक्सेल पहलू अनुपात (PAR) होना चाहिए। यही है, पिक्सेल पहलू अनुपात 10% सहिष्णुता के साथ वर्ग (1.0) के पास होना चाहिए।

7.2. आगत यंत्र

7.2.1. कीबोर्ड

डिवाइस कार्यान्वयन:

  • इनपुट प्रबंधन ढांचे के लिए समर्थन शामिल होना चाहिए (जो तीसरे पक्ष के डेवलपर्स को इनपुट प्रबंधन इंजन बनाने की अनुमति देता है - यानी सॉफ्ट कीबोर्ड) के रूप में http://developer.android.com पर विस्तृत
  • कम से कम एक नरम कीबोर्ड कार्यान्वयन प्रदान करना चाहिए (चाहे एक हार्ड कीबोर्ड मौजूद हो)
  • अतिरिक्त सॉफ्ट कीबोर्ड कार्यान्वयन शामिल हो सकते हैं
  • एक हार्डवेयर कीबोर्ड शामिल हो सकता है
  • एक हार्डवेयर कीबोर्ड को शामिल नहीं करना चाहिए जो android.content.res.Configuration.keyboard में निर्दिष्ट प्रारूपों में से एक से मेल नहीं खाता है

7.2.2. गैर-स्पर्श नेविगेशन

डिवाइस कार्यान्वयन:

  • एक गैर-स्पर्श नेविगेशन विकल्प को छोड़ सकते हैं (यानी, एक ट्रैकबॉल, डी-पैड, या पहिया को छोड़ सकते हैं)
  • android.content.res.Configuration.navigation [ संसाधन, 40 ] के लिए सही मूल्य की रिपोर्ट करनी चाहिए
  • इनपुट प्रबंधन इंजन के साथ संगत पाठ के चयन और संपादन के लिए एक उचित वैकल्पिक उपयोगकर्ता इंटरफ़ेस तंत्र प्रदान करना चाहिए। अपस्ट्रीम एंड्रॉइड ओपन सोर्स सॉफ्टवेयर में उन उपकरणों के साथ उपयोग के लिए उपयुक्त एक चयन तंत्र शामिल है जिसमें गैर-स्पर्श नेविगेशन इनपुट की कमी होती है।

7.2.3. नेविगेशन कुंजियाँ

Android नेविगेशन प्रतिमान के लिए घर, मेनू और बैक फ़ंक्शन आवश्यक हैं। डिवाइस कार्यान्वयन को एप्लिकेशन चलाने के दौरान हर समय इन कार्यों को उपयोगकर्ता को उपलब्ध कराना चाहिए। इन कार्यों को समर्पित भौतिक बटन (जैसे यांत्रिक या कैपेसिटिव टच बटन) के माध्यम से लागू किया जा सकता है, या समर्पित सॉफ्टवेयर कुंजियों, इशारों, टच पैनल, आदि का उपयोग करके लागू किया जा सकता है। एंड्रॉइड 4.0 दोनों कार्यान्वयन का समर्थन करता है।

डिवाइस कार्यान्वयन नेविगेशन कुंजियों को प्रदर्शित करने के लिए स्क्रीन के एक अलग हिस्से का उपयोग कर सकते हैं, लेकिन यदि हां, तो इन आवश्यकताओं को पूरा करना चाहिए:

  • डिवाइस कार्यान्वयन नेविगेशन कुंजियों को स्क्रीन के एक अलग हिस्से का उपयोग करना चाहिए, अनुप्रयोगों के लिए उपलब्ध नहीं है, और अनुप्रयोगों के लिए उपलब्ध स्क्रीन के हिस्से के साथ अस्पष्ट या अन्यथा हस्तक्षेप नहीं करना चाहिए।
  • डिवाइस कार्यान्वयन को उन अनुप्रयोगों के लिए प्रदर्शन का एक हिस्सा उपलब्ध कराना चाहिए जो धारा 7.1.1 में परिभाषित आवश्यकताओं को पूरा करता है।
  • डिवाइस कार्यान्वयन को नेविगेशन कुंजियों को प्रदर्शित करना होगा जब एप्लिकेशन एक सिस्टम UI मोड निर्दिष्ट नहीं करते हैं, या SYSTEM_UI_FLAG_VISIBLE निर्दिष्ट करते हैं।
  • Device implementations MUST present the navigation keys in an unobtrusive "low profile" (eg. dimmed) mode when applications specify SYSTEM_UI_FLAG_LOW_PROFILE .
  • Device implementations MUST hide the navigation keys when applications specify SYSTEM_UI_FLAG_HIDE_NAVIGATION .
  • Device implementation MUST present a Menu key to applications when targetSdkVersion <= 10 and SHOULD NOT present a Menu key when the targetSdkVersion > 10.

7.2.4. टचस्क्रीन इनपुट

डिवाइस कार्यान्वयन:

  • MUST have a pointer input system of some kind (either mouse-like, or touch)
  • MAY have a touchscreen of any modality (such as capacitive or resistive)
  • SHOULD support fully independently tracked pointers, if a touchscreen supports multiple pointers
  • MUST report the value of android.content.res.Configuration.touchscreen [ Resources, 40 ] corresponding to the type of the specific touchscreen on the device

Android 4.0 includes support for a variety of touch screens, touch pads, and fake touch input devices. Touch screen based device implementations are associated with a display [ Resources, 61 ] such that the user has the impression of directly manipulating items on screen. Since the user is directly touching the screen, the system does not require any additional affordances to indicate the objects being manipulated. In contrast, a fake touch interface provides a user input system that approximates a subset of touchscreen capabilities. For example, a mouse or remote control that drives an on-screen cursor approximates touch, but requires the user to first point or focus then click. Numerous input devices like the mouse, trackpad, gyro-based air mouse, gyro-pointer, joystick, and multi-touch trackpad can support fake touch interactions. Android 4.0 includes the feature constant android.hardware.faketouch , which corresponds to a high-fidelity non-touch (that is, pointer-based) input device such as a mouse or trackpad that can adequately emulate touch-based input (including basic gesture support), and indicates that the device supports an emulated subset of touchscreen functionality. Device implementations that declare the fake touch feature MUST meet the fake touch requirements in Section 7.2.5 .

Device implementations MUST report the correct feature corresponding to the type of input used. Device implementations that include a touchscreen (single-touch or better) MUST also report the platform feature constant android.hardware.faketouch . Device implementations that do not include a touchscreen (and rely on a pointer device only) MUST NOT report any touchscreen feature, and MUST report only android.hardware.faketouch if they meet the fake touch requirements in Section 7.2.5 .

7.2.5. Fake touch input

Device implementations that declare support for android.hardware.faketouch

  • MUST report the absolute X and Y screen positions of the pointer location and display a visual pointer on the screen[ Resources, 60 ]
  • MUST report touch event with the action code [ Resources, 60 ] that specifies the state change that occurs on the pointer going down or up on the screen [ Resources, 60 ]
  • MUST support pointer down and up on an object on the screen, which allows users to emulate tap on an object on the screen
  • MUST support pointer down , pointer up , pointer down then pointer up in the same place on an object on the screen within a time threshold, which allows users to emulate double tap on an object on the screen [ Resources, 60 ]
  • MUST support pointer down on an arbitrary point on the screen, pointer move to any other arbitrary point on the screen, followed by a pointer up , which allows users to emulate a touch drag
  • MUST support pointer down then allow users to quickly move the object to a different position on the screen and then pointer up on the screen, which allows users to fling an object on the screen

Devices that declare support for android.hardware.faketouch.multitouch.distinct MUST meet the requirements for faketouch above, and MUST also support distinct tracking of two or more independent pointer inputs.

7.2.6. माइक्रोफ़ोन

Device implementations MAY omit a microphone. However, if a device implementation omits a microphone, it MUST NOT report the android.hardware.microphone feature constant, and must implement the audio recording API as no-ops, per Section 7 . Conversely, device implementations that do possess a microphone:

  • MUST report the android.hardware.microphone feature constant
  • SHOULD meet the audio quality requirements in Section 5.3
  • SHOULD meet the audio latency requirements in Section 5.4

7.3. सेंसर

Android 4.0 includes APIs for accessing a variety of sensor types. Devices implementations generally MAY omit these sensors, as provided for in the following subsections. If a device includes a particular sensor type that has a corresponding API for third-party developers, the device implementation MUST implement that API as described in the Android SDK documentation. For example, device implementations:

  • MUST accurately report the presence or absence of sensors per the android.content.pm.PackageManager class. [ Resources, 37 ]
  • MUST return an accurate list of supported sensors via the SensorManager.getSensorList() and similar methods
  • MUST behave reasonably for all other sensor APIs (for example, by returning true or false as appropriate when applications attempt to register listeners, not calling sensor listeners when the corresponding sensors are not present; etc.)
  • MUST report all sensor measurements using the relevant International System of Units (ie metric) values for each sensor type as defined in the Android SDK documentation [ Resources, 41 ]

The list above is not comprehensive; the documented behavior of the Android SDK is to be considered authoritative.

Some sensor types are synthetic, meaning they can be derived from data provided by one or more other sensors. (Examples include the orientation sensor, and the linear acceleration sensor.) Device implementations SHOULD implement these sensor types, when they include the prerequisite physical sensors.

The Android 4.0 APIs introduce a notion of a "streaming" sensor, which is one that returns data continuously, rather than only when the data changes. Device implementations MUST continuously provide periodic data samples for any API indicated by the Android 4.0 SDK documentation to be a streaming sensor.

7.3.1. accelerometer

Device implementations SHOULD include a 3-axis accelerometer. If a device implementation does include a 3-axis accelerometer, it:

  • MUST be able to deliver events at 50 Hz or greater
  • MUST comply with the Android sensor coordinate system as detailed in the Android APIs (see [ Resources, 41 ])
  • MUST be capable of measuring from freefall up to twice gravity (2g) or more on any three-dimensional vector
  • MUST have 8-bits of accuracy or more
  • MUST have a standard deviation no greater than 0.05 m/s^2

7.3.2. मैग्नेटोमीटर

Device implementations SHOULD include a 3-axis magnetometer (ie compass.) If a device does include a 3-axis magnetometer, it:

  • MUST be able to deliver events at 10 Hz or greater
  • MUST comply with the Android sensor coordinate system as detailed in the Android APIs (see [ Resources, 41 ]).
  • MUST be capable of sampling a range of field strengths adequate to cover the geomagnetic field
  • MUST have 8-bits of accuracy or more
  • MUST have a standard deviation no greater than 0.5 µT

7.3.3. GPS

Device implementations SHOULD include a GPS receiver. If a device implementation does include a GPS receiver, it SHOULD include some form of "assisted GPS" technique to minimize GPS lock-on time.

7.3.4. जाइरोस्कोप

Device implementations SHOULD include a gyroscope (ie angular change sensor.) Devices SHOULD NOT include a gyroscope sensor unless a 3-axis accelerometer is also included. If a device implementation includes a gyroscope, it:

  • MUST be temperature compensated
  • MUST be capable of measuring orientation changes up to 5.5*Pi radians/second (that is, approximately 1,000 degrees per second)
  • MUST be able to deliver events at 100 Hz or greater
  • MUST have 12-bits of accuracy or more
  • MUST have a variance no greater than 1e-7 rad^2 / s^2 per Hz (variance per Hz, or rad^2 / s). The variance is allowed to vary with the sampling rate, but must be constrained by this value. In other words, if you measure the variance of the gyro at 1 Hz sampling rate it should be no greater than 1e-7 rad^2/s^2.
  • MUST have timestamps as close to when the hardware event happened as possible. The constant latency must be removed.

7.3.5. बैरोमीटर

Device implementations MAY include a barometer (ie ambient air pressure sensor.) If a device implementation includes a barometer, it:

  • MUST be able to deliver events at 5 Hz or greater
  • MUST have adequate precision to enable estimating altitude

7.3.7. थर्मामीटर

Device implementations MAY but SHOULD NOT include a thermometer (ie temperature sensor.) If a device implementation does include a thermometer, it MUST measure the temperature of the device CPU. It MUST NOT measure any other temperature. (Note that this sensor type is deprecated in the Android 4.0 APIs.)

7.3.7. दीप्तिमापी

Device implementations MAY include a photometer (ie ambient light sensor.)

7.3.8. निकटता सेंसर

Device implementations MAY include a proximity sensor. If a device implementation does include a proximity sensor, it MUST measure the proximity of an object in the same direction as the screen. That is, the proximity sensor MUST be oriented to detect objects close to the screen, as the primary intent of this sensor type is to detect a phone in use by the user. If a device implementation includes a proximity sensor with any other orientation, it MUST NOT be accessible through this API. If a device implementation has a proximity sensor, it MUST be have 1-bit of accuracy or more.

7.4. डेटा कनेक्टिविटी

7.4.1. टेलीफ़ोनी

"Telephony" as used by the Android 4.0 APIs and this document refers specifically to hardware related to placing voice calls and sending SMS messages via a GSM or CDMA network. While these voice calls may or may not be packet-switched, they are for the purposes of Android 4.0 considered independent of any data connectivity that may be implemented using the same network. In other words, the Android "telephony" functionality and APIs refer specifically to voice calls and SMS; for instance, device implementations that cannot place calls or send/receive SMS messages MUST NOT report the "android.hardware.telephony" feature or any sub-features, regardless of whether they use a cellular network for data connectivity.

Android 4.0 MAY be used on devices that do not include telephony hardware. That is, Android 4.0 is compatible with devices that are not phones. However, if a device implementation does include GSM or CDMA telephony, it MUST implement full support for the API for that technology. Device implementations that do not include telephony hardware MUST implement the full APIs as no-ops.

7.4.2. आईईईई 802.11 (वाईफ़ाई)

Android 4.0 device implementations SHOULD include support for one or more forms of 802.11 (b/g/a/n, etc.) If a device implementation does include support for 802.11, it MUST implement the corresponding Android API.

7.4.3. ब्लूटूथ

Device implementations SHOULD include a Bluetooth transceiver. Device implementations that do include a Bluetooth transceiver MUST enable the RFCOMM-based Bluetooth API as described in the SDK documentation [ Resources, 42 ]. Device implementations SHOULD implement relevant Bluetooth profiles, such as A2DP, AVRCP, OBEX, etc. as appropriate for the device.

The Compatibility Test Suite includes cases that cover basic operation of the Android RFCOMM Bluetooth API. However, since Bluetooth is a communications protocol between devices, it cannot be fully tested by unit tests running on a single device. Consequently, device implementations MUST also pass the human-driven Bluetooth test procedure described in Appendix A.

7.4.4. नियर-फील्ड कम्युनिकेशंस

Device implementations SHOULD include a transceiver and related hardware for Near-Field Communications (NFC). If a device implementation does include NFC hardware, then it:

  • MUST report the android.hardware.nfc feature from the android.content.pm.PackageManager.hasSystemFeature() method. [ Resources, 37 ]
  • MUST be capable of reading and writing NDEF messages via the following NFC standards:
    • MUST be capable of acting as an NFC Forum reader/writer (as defined by the NFC Forum technical specification NFCForum-TS-DigitalProtocol-1.0) via the following NFC standards:
      • NfcA (ISO14443-3A)
      • NfcB (ISO14443-3B)
      • NfcF (JIS 6319-4)
      • IsoDep (ISO 14443-4)
      • NFC Forum Tag Types 1, 2, 3, 4 (defined by the NFC Forum)
  • SHOULD be capable of reading and writing NDEF messages via the following NFC standards. Note that while the NFC standards below are stated as "SHOULD" for Android 4.0, the Compatibility Definition for a future version is planned to change these to "MUST". That is, these stanards are optional in Android 4.0 but will be required in future versions. Existing and new devices that run Android 4.0 are very strongly encouraged to meet these requirements in Android 4.0 so they will be able to upgrade to the future platform releases.
    • NfcV (ISO 15693)
  • MUST be capable of transmitting and receiving data via the following peer-to-peer standards and protocols:
    • ISO 18092
    • LLCP 1.0 (defined by the NFC Forum)
    • SDP 1.0 (defined by the NFC Forum)
    • NDEF Push Protocol [ Resources, 43 ]
    • SNEP 1.0 (defined by the NFC Forum)
  • MUST include support for Android Beam:
    • MUST implement the SNEP default server. Valid NDEF messages received by the default SNEP server MUST be dispatched to applications using the android.nfc.ACTION_NDEF_DISCOVERED intent. Disabling Android Beam in settings MUST NOT disable dispatch of incoming NDEF message.
    • MUST implement the NPP server. Messages received by the NPP server MUST be processed the same way as the SNEP default server.
    • MUST implement a SNEP client and attempt to send outbound P2P NDEF to the default SNEP server when Android Beam is enabled. If no default SNEP server is found then the client MUST attempt to send to an NPP server.
    • MUST allow foreground activities to set the outbound P2P NDEF message using android.nfc.NfcAdapter.setNdefPushMessage, and android.nfc.NfcAdapter.setNdefPushMessageCallback, and android.nfc.NfcAdapter.enableForegroundNdefPush.
    • SHOULD use a gesture or on-screen confirmation, such as 'Touch to Beam', before sending outbound P2P NDEF messages.
    • SHOULD enable Android Beam by default
  • MUST poll for all supported technologies while in NFC discovery mode.
  • SHOULD be in NFC discovery mode while the device is awake with the screen active and the lock-screen unlocked.

(Note that publicly available links are not available for the JIS, ISO, and NFC Forum specifications cited above.)

Additionally, device implementations MAY include reader/writer support for the following MIFARE technologies.

Note that Android 4.0 includes APIs for these MIFARE types. If a device implementation supports MIFARE in the reader/writer role, it:

  • MUST implement the corresponding Android APIs as documented by the Android SDK
  • MUST report the feature com.nxp.mifare from the android.content.pm.PackageManager.hasSystemFeature() method. [ Resources, 37 ] Note that this is not a standard Android feature, and as such does not appear as a constant on the PackageManager class.
  • MUST NOT implement the corresponding Android APIs nor report the com.nxp.mifare feature unless it also implements general NFC support as described in this section

If a device implementation does not include NFC hardware, it MUST NOT declare the android.hardware.nfc feature from the android.content.pm.PackageManager.hasSystemFeature() method [ Resources, 37 ], and MUST implement the Android 4.0 NFC API as एक नो-ऑप।

As the classes android.nfc.NdefMessage and android.nfc.NdefRecord represent a protocol-independent data representation format, device implementations MUST implement these APIs even if they do not include support for NFC or declare the android.hardware.nfc feature.

7.4.5. Minimum Network Capability

Device implementations MUST include support for one or more forms of data networking. Specifically, device implementations MUST include support for at least one data standard capable of 200Kbit/sec or greater. Examples of technologies that satisfy this requirement include EDGE, HSPA, EV-DO, 802.11g, Ethernet, etc.

Device implementations where a physical networking standard (such as Ethernet) is the primary data connection SHOULD also include support for at least one common wireless data standard, such as 802.11 (WiFi).

Devices MAY implement more than one form of data connectivity.

7.5. कैमरा

Device implementations SHOULD include a rear-facing camera, and MAY include a front-facing camera. A rear-facing camera is a camera located on the side of the device opposite the display; that is, it images scenes on the far side of the device, like a traditional camera. A front-facing camera is a camera located on the same side of the device as the display; that is, a camera typically used to image the user, such as for video conferencing and similar applications.

7.5.1. रियर-फेसिंग कैमरा

Device implementations SHOULD include a rear-facing camera. If a device implementation includes a rear-facing camera, it:

  • MUST have a resolution of at least 2 megapixels
  • SHOULD have either hardware auto-focus, or software auto-focus implemented in the camera driver (transparent to application software)
  • MAY have fixed-focus or EDOF (extended depth of field) hardware
  • MAY include a flash. If the Camera includes a flash, the flash lamp MUST NOT be lit while an android.hardware.Camera.PreviewCallback instance has been registered on a Camera preview surface, unless the application has explicitly enabled the flash by enabling the FLASH_MODE_AUTO or FLASH_MODE_ON attributes of a Camera.Parameters object. Note that this constraint does not apply to the device's built-in system camera application, but only to third-party applications using Camera.PreviewCallback .

7.5.2. सामने की ओर मुख किया हुआ कैमरा

Device implementations MAY include a front-facing camera. If a device implementation includes a front-facing camera, it:

  • MUST have a resolution of at least VGA (that is, 640x480 pixels)
  • MUST NOT use a front-facing camera as the default for the Camera API. That is, the camera API in Android 4.0 has specific support for front-facing cameras, and device implementations MUST NOT configure the API to to treat a front-facing camera as the default rear-facing camera, even if it is the only camera on युक्ति।
  • MAY include features (such as auto-focus, flash, etc.) available to rear-facing cameras as described in Section 7.5.1.
  • MUST horizontally reflect (ie mirror) the stream displayed by an app in a CameraPreview, as follows:
    • If the device implementation is capable of being rotated by user (such as automatically via an accelerometer or manually via user input), the camera preview MUST be mirrored horizontally relative to the device's current orientation.
    • If the current application has explicitly requested that the Camera display be rotated via a call to the android.hardware.Camera.setDisplayOrientation() [ Resources, 50 ] method, the camera preview MUST be mirrored horizontally relative to the orientation specified by the application.
    • Otherwise, the preview MUST be mirrored along the device's default horizontal axis.
  • MUST mirror the image displayed by the postview in the same manner as the camera preview image stream. (If the device implementation does not support postview, this requirement obviously does not apply.)
  • MUST NOT mirror the final captured still image or video streams returned to application callbacks or committed to media storage

7.5.3. Camera API Behavior

Device implementations MUST implement the following behaviors for the camera-related APIs, for both front- and rear-facing cameras:

  1. If an application has never called android.hardware.Camera.Parameters.setPreviewFormat(int) , then the device MUST use android.hardware.PixelFormat.YCbCr_420_SP for preview data provided to application callbacks.
  2. If an application registers an android.hardware.Camera.PreviewCallback instance and the system calls the onPreviewFrame() method when the preview format is YCbCr_420_SP, the data in the byte[] passed into onPreviewFrame() must further be in the NV21 encoding format. That is, NV21 MUST be the default.
  3. Device implementations MUST support the YV12 format (as denoted by the android.graphics.ImageFormat.YV12 constant) for camera previews for both front- and rear-facing cameras. (The hardware video decoder and camera may use any native pixel format, but the device implementation MUST support conversion to YV12.)

Device implementations MUST implement the full Camera API included in the Android 4.0 SDK documentation [ Resources, 51 ]), regardless of whether the device includes hardware autofocus or other capabilities. For instance, cameras that lack autofocus MUST still call any registered android.hardware.Camera.AutoFocusCallback instances (even though this has no relevance to a non-autofocus camera.) Note that this does apply to front-facing cameras; for instance, even though most front-facing cameras do not support autofocus, the API callbacks must still be "faked" as described.

Device implementations MUST recognize and honor each parameter name defined as a constant on the android.hardware.Camera.Parameters class, if the underlying hardware supports the feature. If the device hardware does not support a feature, the API must behave as documented. Conversely, Device implementations MUST NOT honor or recognize string constants passed to the android.hardware.Camera.setParameters() method other than those documented as constants on the android.hardware.Camera.Parameters . That is, device implementations MUST support all standard Camera parameters if the hardware allows, and MUST NOT support custom Camera parameter types.

Device implementations MUST broadcast the Camera.ACTION_NEW_PICTURE intent whenever a new picture is taken by the camera and the entry of the picture has been added to the media store.

Device implementations MUST broadcast the Camera.ACTION_NEW_VIDEO intent whenever a new video is recorded by the camera and the entry of the picture has been added to the media store.

7.5.4. Camera Orientation

Both front- and rear-facing cameras, if present, MUST be oriented so that the long dimension of the camera aligns with the screen's long dimension. That is, when the device is held in the landscape orientation, cameras MUST capture images in the landscape orientation. This applies regardless of the device's natural orientation; that is, it applies to landscape-primary devices as well as portrait-primary devices.

7.6. मेमोरी और स्टोरेज

7.6.1. Minimum Memory and Storage

Device implementations MUST have at least 340MB of memory available to the kernel and userspace. The 340MB MUST be in addition to any memory dedicated to hardware components such as radio, video, and so on that is not under the kernel's control.

Device implementations MUST have at least 350MB of non-volatile storage available for application private data. That is, the /data partition MUST be at least 350MB.

The Android APIs include a Download Manager that applications may use to download data files [ Resources, 56 ]. The device implementation of the Download Manager MUST be capable of downloading individual files of at least 100MB in size to the default "cache" location.

7.6.2. Application Shared Storage

Device implementations MUST offer shared storage for applications. The shared storage provided MUST be at least 1GB in size.

Device implementations MUST be configured with shared storage mounted by default, "out of the box". If the shared storage is not mounted on the Linux path /sdcard , then the device MUST include a Linux symbolic link from /sdcard to the actual mount point.

Device implementations MUST enforce as documented the android.permission.WRITE_EXTERNAL_STORAGE permission on this shared storage. Shared storage MUST otherwise be writable by any application that obtains that permission.

Device implementations MAY have hardware for user-accessible removable storage, such as a Secure Digital card. Alternatively, device implementations MAY allocate internal (non-removable) storage as shared storage for apps.

Regardless of the form of shared storage used, device implementations MUST provide some mechanism to access the contents of shared storage from a host computer, such as USB mass storage (UMS) or Media Transfer Protocol (MTP). Device implementations MAY use USB mass storage, but SHOULD use Media Transfer Protocol. If the device implementation supports Media Transfer Protocol:

  • The device implementation SHOULD be compatible with the reference Android MTP host, Android File Transfer [ Resources, 57 ].
  • The device implementation SHOULD report a USB device class of 0x00 .
  • The device implementation SHOULD report a USB interface name of 'MTP'.

If the device implementation lacks USB ports, it MUST provide a host computer with access to the contents of shared storage by some other means, such as a network file system.

It is illustrative to consider two common examples. If a device implementation includes an SD card slot to satisfy the shared storage requirement, a FAT-formatted SD card 1GB in size or larger MUST be included with the device as sold to users, and MUST be mounted by default. Alternatively, if a device implementation uses internal fixed storage to satisfy this requirement, that storage MUST be 1GB in size or larger and mounted on /sdcard (or /sdcard MUST be a symbolic link to the physical location if it is mounted elsewhere.)

Device implementations that include multiple shared storage paths (such as both an SD card slot and shared internal storage) SHOULD modify the core applications such as the media scanner and ContentProvider to transparently support files placed in both locations.

7.7. USB

Device implementations SHOULD include a USB client port, and SHOULD include a USB host port.

If a device implementation includes a USB client port:

  • the port MUST be connectable to a USB host with a standard USB-A port
  • the port SHOULD use the micro USB form factor on the device side
  • it MUST allow a host connected to the device to access the contents of the shared storage volume using either USB mass storage or Media Transfer Protocol
  • it MUST implement the Android Open Accessory API and specification as documented in the Android SDK documentation, and MUST declare support for the hardware feature android.hardware.usb.accessory [ Resources, 51 ]

If a device implementation includes a USB host port:

  • it MAY use a non-standard port form factor, but if so MUST ship with a cable or cables adapting the port to standard USB-A
  • it MUST implement the Android USB host API as documented in the Android SDK, and MUST declare support for the hardware feature android.hardware.usb.host [ Resources, 52 ]

Device implementations MUST implement the Android Debug Bridge. If a device implementation omits a USB client port, it MUST implement the Android Debug Bridge via local-area network (such as Ethernet or 802.11)

8. Performance Compatibility

Device implementations MUST meet the key performance metrics of an Android 4.0 compatible device defined in the table below:

मीट्रिक प्रदर्शन सीमा टिप्पणियाँ
Application Launch Time The following applications should launch within the specified time.
  • ब्राउज़र: 1300ms से कम
  • Contacts: less than 700ms
  • Settings: less than 700ms
The launch time is measured as the total time to complete loading the default activity for the application, including the time it takes to start the Linux process, load the Android package into the Dalvik VM, and call onCreate.
Simultaneous Applications When multiple applications have been launched, re-launching an already-running application after it has been launched must take less than the original launch time.

9. Security Model Compatibility

Device implementations MUST implement a security model consistent with the Android platform security model as defined in Security and Permissions reference document in the APIs [ Resources, 54 ] in the Android developer documentation. Device implementations MUST support installation of self-signed applications without requiring any additional permissions/certificates from any third parties/authorities. Specifically, compatible devices MUST support the security mechanisms described in the follow sub-sections.

9.1. अनुमतियां

Device implementations MUST support the Android permissions model as defined in the Android developer documentation [ Resources, 54 ]. Specifically, implementations MUST enforce each permission defined as described in the SDK documentation; किसी भी अनुमति को छोड़ा, बदल दिया जा सकता है या अनदेखा नहीं किया जा सकता है। Implementations MAY add additional permissions, provided the new permission ID strings are not in the android.* namespace.

9.2. UID and Process Isolation

Device implementations MUST support the Android application sandbox model, in which each application runs as a unique Unix-style UID and in a separate process. Device implementations MUST support running multiple applications as the same Linux user ID, provided that the applications are properly signed and constructed, as defined in the Security and Permissions reference [ Resources, 54 ].

9.3. फाइलसिस्टम अनुमतियाँ

Device implementations MUST support the Android file access permissions model as defined in as defined in the Security and Permissions reference [ Resources, 54 ].

9.4. Alternate Execution Environments

Device implementations MAY include runtime environments that execute applications using some other software or technology than the Dalvik virtual machine or native code. However, such alternate execution environments MUST NOT compromise the Android security model or the security of installed Android applications, as described in this section.

Alternate runtimes MUST themselves be Android applications, and abide by the standard Android security model, as described elsewhere in Section 9.

Alternate runtimes MUST NOT be granted access to resources protected by permissions not requested in the runtime's AndroidManifest.xml file via the <uses-permission> mechanism.

Alternate runtimes MUST NOT permit applications to make use of features protected by Android permissions restricted to system applications.

Alternate runtimes MUST abide by the Android sandbox model. विशेष रूप से:

  • Alternate runtimes SHOULD install apps via the PackageManager into separate Android sandboxes (that is, Linux user IDs, etc.)
  • Alternate runtimes MAY provide a single Android sandbox shared by all applications using the alternate runtime.
  • Alternate runtimes and installed applications using an alternate runtime MUST NOT reuse the sandbox of any other app installed on the device, except through the standard Android mechanisms of shared user ID and signing certificate
  • Alternate runtimes MUST NOT launch with, grant, or be granted access to the sandboxes corresponding to other Android applications.

Alternate runtimes MUST NOT be launched with, be granted, or grant to other applications any privileges of the superuser (root), or of any other user ID.

The .apk files of alternate runtimes MAY be included in the system image of a device implementation, but MUST be signed with a key distinct from the key used to sign other applications included with the device implementation.

When installing applications, alternate runtimes MUST obtain user consent for the Android permissions used by the application. That is, if an application needs to make use of a device resource for which there is a corresponding Android permission (such as Camera, GPS, etc.), the alternate runtime MUST inform the user that the application will be able to access that resource . If the runtime environment does not record application capabilities in this manner, the runtime environment MUST list all permissions held by the runtime itself when installing any application using that runtime.

10. Software Compatibility Testing

Device implementations MUST pass all tests described in this section.

However, note that no software test package is fully comprehensive. For this reason, device implementers are very strongly encouraged to make the minimum number of changes as possible to the reference and preferred implementation of Android 4.0 available from the Android Open Source Project. This will minimize the risk of introducing bugs that create incompatibilities requiring rework and potential device updates.

10.1. संगतता परीक्षण सुइट

Device implementations MUST pass the Android Compatibility Test Suite (CTS) [ Resources, 2 ] available from the Android Open Source Project, using the final shipping software on the device. Additionally, device implementers SHOULD use the reference implementation in the Android Open Source tree as much as possible, and MUST ensure compatibility in cases of ambiguity in CTS and for any reimplementations of parts of the reference source code.

CTS को एक वास्तविक डिवाइस पर चलाने के लिए डिज़ाइन किया गया है। किसी भी सॉफ्टवेयर की तरह, CTS में ही बग हो सकते हैं। The CTS will be versioned independently of this Compatibility Definition, and multiple revisions of the CTS may be released for Android 4.0. Device implementations MUST pass the latest CTS version available at the time the device software is completed.

10.2. CTS Verifier

Device implementations MUST correctly execute all applicable cases in the CTS Verifier. The CTS Verifier is included with the Compatibility Test Suite, and is intended to be run by a human operator to test functionality that cannot be tested by an automated system, such as correct functioning of a camera and sensors.

The CTS Verifier has tests for many kinds of hardware, including some hardware that is optional. Device implementations MUST pass all tests for hardware which they possess; for instance, if a device possesses an accelerometer, it MUST correctly execute the Accelerometer test case in the CTS Verifier. Test cases for features noted as optional by this Compatibility Definition Document MAY be skipped or omitted.

Every device and every build MUST correctly run the CTS Verifier, as noted above. However, since many builds are very similar, device implementers are not expected to explicitly run the CTS Verifier on builds that differ only in trivial ways. Specifically, device implementations that differ from an implementation that has passed the CTS Verfier only by the set of included locales, branding, etc. MAY omit the CTS Verifier test.

10.3. संदर्भ अनुप्रयोग

Device implementers MUST test implementation compatibility using the following open source applications:

  • The "Apps for Android" applications [ Resources, 55 ].
  • Replica Island (available in Android Market)

Each app above MUST launch and behave correctly on the implementation, for the implementation to be considered compatible.

11. Updatable Software

Device implementations MUST include a mechanism to replace the entirety of the system software. The mechanism need not perform "live" upgrades - that is, a device restart MAY be required.

Any method can be used, provided that it can replace the entirety of the software preinstalled on the device. For instance, any of the following approaches will satisfy this requirement:

  • Over-the-air (OTA) downloads with offline update via reboot
  • "Tethered" updates over USB from a host PC
  • "Offline" updates via a reboot and update from a file on removable storage

The update mechanism used MUST support updates without wiping user data. That is, the update mechanism MUST preserve application private data and application shared data. Note that the upstream Android software includes an update mechanism that satisfies this requirement.

If an error is found in a device implementation after it has been released but within its reasonable product lifetime that is determined in consultation with the Android Compatibility Team to affect the compatibility of third-party applications, the device implementer MUST correct the error via a software update available that can be applied per the mechanism just described.

12. हमसे संपर्क करें

You can contact the document authors at compatibility@android.com for clarifications and to bring up any issues that you think the document does not cover.

Appendix A - Bluetooth Test Procedure

The Compatibility Test Suite includes cases that cover basic operation of the Android RFCOMM Bluetooth API. However, since Bluetooth is a communications protocol between devices, it cannot be fully tested by unit tests running on a single device. Consequently, device implementations MUST also pass the human-operated Bluetooth test procedure described below.

The test procedure is based on the BluetoothChat sample app included in the Android open source project tree. The procedure requires two devices:

  • a candidate device implementation running the software build to be tested
  • a separate device implementation already known to be compatible, and of a model from the device implementation being tested - that is, a "known good" device implementation

The test procedure below refers to these devices as the "candidate" and "known good" devices, respectively.

सेटअप और इंस्टालेशन

  1. Build BluetoothChat.apk via 'make samples' from an Android source code tree.
  2. Install BluetoothChat.apk on the known-good device.
  3. Install BluetoothChat.apk on the candidate device.

Test Bluetooth Control by Apps

  1. Launch BluetoothChat on the candidate device, while Bluetooth is disabled.
  2. Verify that the candidate device either turns on Bluetooth, or prompts the user with a dialog to turn on Bluetooth.

Test Pairing and Communication

  1. Launch the Bluetooth Chat app on both devices.
  2. Make the known-good device discoverable from within BluetoothChat (using the Menu).
  3. On the candidate device, scan for Bluetooth devices from within BluetoothChat (using the Menu) and pair with the known-good device.
  4. Send 10 or more messages from each device, and verify that the other device receives them correctly.
  5. Close the BluetoothChat app on both devices by pressing Home .
  6. Unpair each device from the other, using the device Settings app.

Test Pairing and Communication in the Reverse Direction

  1. Launch the Bluetooth Chat app on both devices.
  2. Make the candidate device discoverable from within BluetoothChat (using the Menu).
  3. On the known-good device, scan for Bluetooth devices from within BluetoothChat (using the Menu) and pair with the candidate device.
  4. Send 10 or messages from each device, and verify that the other device receives them correctly.
  5. Close the Bluetooth Chat app on both devices by pressing Back repeatedly to get to the Launcher.

Test Re-Launches

  1. Re-launch the Bluetooth Chat app on both devices.
  2. Send 10 or messages from each device, and verify that the other device receives them correctly.

Note: the above tests have some cases which end a test section by using Home, and some using Back. These tests are not redundant and are not optional: the objective is to verify that the Bluetooth API and stack works correctly both when Activities are explicitly terminated (via the user pressing Back, which calls finish()), and implicitly sent to background (via the user pressing Home.) Each test sequence MUST be performed as described.