資源
要求執行階段權限
所有 Android 應用程式都是在存取權受限的沙箱中執行。如果您的應用程式需要使用自身沙箱以外的資源或資訊,您可以 宣告執行階段權限 ,並設定提供這項存取權的權限要求。這些步驟屬於 使用權限工作流程 的一環。 如果您宣告任何 危險權限 ,且應用程式安裝在搭載 Android 6.0 (API 級別 23) 以上版本的裝置上,就必須按照本指南所說明的步驟,在執行階段要求危險權限。 如果您未宣告任何危險權限,或者您的應用程式是安裝在搭載 Android 5.1 (API 級別 22)
處理 Android 應用程式連結
使用者在裝置上點按連結時,心中只有一個目標:到達想瀏覽的內容。 開發人員可以設定 Android 應用程式連結,直接將使用者帶往應用程式中的特定內容,而無須經過應用程式選取對話方塊 (又稱為歧義對話方塊)。由於 Android 應用程式連結會利用 HTTP 網址並與網站建立關聯,因此未安裝應用程式的使用者可以直接前往網站上的內容。 在實作 Android 應用程式連結前,請務必先瞭解 Android 應用程式建立不同類型的連結:深層連結、網站 以及 Android 應用程式連結圖 1
針對 Google 助理進行上下文最佳化調整
透過 Assist API 支援內容比對動作。
針對打盹和應用程式待命進行最佳化
測試及最佳化應用程式,以享有 Android 6.0 中的省電功能。
影片
The Nexus 5X, Nexus 6P and Android Marshmallow
Updated 2019年3月14日
Updated 2019年3月14日
Introduction to Doze
Updated 2019年3月14日
Data Binding Library
Updated 2019年3月14日
最新
Marshmallow and User Data
Marshmallow introduced several changes that were designed to help your app look after user data. The goal was to make it easier for developers to do the right thing. So as Android 6.0, Marshmallow, gains traction, we challenge you to do just that.
Testing your app for Android for Work
Testing is important whether you’re building a dedicated app for the workplace, rolling out new features, or making it easy for IT departments to deploy. Test DPC is now available for you and is a fully featured, open-source, sample Device Policy
New in Android Samples: Authenticating to remote servers using the Fingerprint API
As we announced in the previous blog post, Android 6.0 Marshmallow is now publicly available to users. Along the way, we’ve been updating our samples collection to highlight exciting new features available to developers. This week, we’re releasing
In-app translations in Android Marshmallow
Google Translate is used by more than 500 million people every month, translating more than 100 billion words every single day. Beginning this week, Android mobile users who have the Translate app installed will be able to translate in 90 languages
Android 6.0 Marshmallow coming to devices soon
Starting next week, Android 6.0 Marshmallow will begin rolling out to supported Nexus devices around the world, including Nexus 5, Nexus 6, Nexus 7 (2013), Nexus 9, Nexus Player, and Android One. At the same time, we’ll be pushing the Android 6.0
New Android Marshmallow sample apps
Three new Android Marshmallow sample applications have gone live this week. As usual they are available directly from the Google Samples repository on GitHub or through the Android Studio samples browser. Android Direct Share Sample Direct Share is a