1
我有我的Android應用程序清單文件,我做了一個新的活動。我希望這個活動能夠像內置圖像查看器一樣處理圖像。因此,我可以在瀏覽器中點擊圖像,它會詢問我是否想使用我的應用程序,或者默認活動來查看圖像。我可以在下面的意圖過濾器使用什麼樣的行動:如何創建處理打開照片的意圖?
<intent-filter>
<action android:name="android.intent.action." />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="image/*" />
</intent-filter>
我相信它會在http://developer.android.com/reference/android/content/Intent.html中列出,但我想不出哪一個是用於查看圖像。
看到http://stackoverflow.com/questions/5383797/open-an-image-using-uri-in-androids-default-gallery-image- viwer – zohreh