What is an intent filter that only an application will display in the general menu when sharing a URL?

I looked through the documentation for the movie of intent, and I cannot understand this particular filter of intent.

I want to use ACTION_SEND because I want the application to appear on the Share menu in other applications. I want to show only in the sharing menu if the intent text is a URL. For example, sharing from the Android Browser general menu. I do not want the application to appear in the general menu if it was just a text and not a URL.

What I still have:

<intent-filter android:label="Label">
  <action android:name="android.intent.action.SEND" />
  <category android:name="android.intent.category.DEFAULT" />
  <data android:mimeType="text/*" />
</intent-filter>    

However, this will get any text, not just URLs.

thank

+5
1

IntentFilter , URI, , ,

, IntentFilter , "match" final, . !a >

Eurika!

"" mimetype. "http" "https" ( ?).

<intent-filter>
  ...
  <data android:scheme="http"/>
</intent-filter>
+1

All Articles