本文介紹了如何將我的應用添加到 Android 的“共享照片"選項?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
可能重復:
Android 通過對話框共享
例如,當您點擊分享照片時,它會為您提供一個分享選項列表(Instagram、Messaging、Gmail 等).我希望我的應用在安裝到設備后顯示在這些共享"選項下.
For example, when you hit share photo, it gives you a list of options to share through (Instagram, Messaging, Gmail, etc.). I want my app to appear under these 'share' options after it is installed to the device.
我嘗試在 Google 上搜索它,但我不熟悉任何術語,因此我的搜索結果術語措辭過于奇怪,無法具體說明.
I tried searching for it on Google, but I'm unfamiliar with any of the terminology so my search result terms are worded too strangely to be specific.
推薦答案
將此意圖過濾器添加到清單中的活動:
Add this intent filter to your activity in the manifest:
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
這篇關于如何將我的應用添加到 Android 的“共享照片"選項?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!