Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I have quoted the below links</p> <p>-<a href="http://www.vogella.com/articles/AndroidIntent/article.html#intentfilter" rel="nofollow">intent filter</a></p> <p>-<a href="http://www.vogella.com/articles/AndroidIntent/article.html#intents_implicit" rel="nofollow">Intents implicit\explicit</a></p> <blockquote> <p><strong>Implicit intents</strong> specify the action which should be performed and optionally data which provides data for the action.</p> <p>For example the following tells the Android system to view a webpage. All installed web browsers should be registered to the corresponding intent data via an intent filter.</p> </blockquote> <pre><code>Intent i = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.vogella.com")); startActivity(i); </code></pre> <blockquote> <p>If an <strong>Explicit intent</strong> is send to the Android system, it searches for all components which are registered for the specific action and the fitting data type.</p> <p>If only one component is found, Android starts this component directly. If several components are identifier by the Android system, the user will get an selection dialog and can decide which component should be used for the intent.</p> </blockquote> <hr> <p><strong>How to use</strong></p> <blockquote> <p>You can register your own components via <strong>Intent filters</strong>. If a component does not define one, it can only be called by explicit intent.</p> </blockquote> <hr> <p><strong>Register an activity as Browser</strong></p> <pre><code>&lt;activity android:name=".BrowserActivitiy" android:label="@string/app_name"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.VIEW" /&gt; &lt;category android:name="android.intent.category.DEFAULT" /&gt; &lt;data android:scheme="http"/&gt; &lt;/intent-filter&gt; &lt;/activity&gt; </code></pre> <p><strong>UPDATES</strong> </p> <p>A code sample for <a href="http://developer.android.com/training/basics/intents/filters.html" rel="nofollow">mimeType</a> </p> <pre><code>&lt;activity android:name="ShareActivity"&gt; &lt;intent-filter&gt; &lt;action android:name="android.intent.action.SEND"/&gt; &lt;category android:name="android.intent.category.DEFAULT"/&gt; &lt;data android:mimeType="text/plain"/&gt; &lt;data android:mimeType="image/*"/&gt; &lt;/intent-filter&gt; </code></pre> <p></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload