Search
 
SCRIPT & CODE EXAMPLE
 

JAVA

What is the function of an IntentFilter?

An intent filter is an expression in an app's manifest
file that specifies the type of intents that the component
would like to receive.  When you create an implicit intent, the
Android system finds the appropriate component to start by
comparing the contents of the intent to the intent filters declared
in the manifest file of other apps on the device. If the
intent matches an intent filter, the system starts that component
and delivers it the Intent object.




<activity android:name=".HelloWorld"
    android:label="@string/app_name">
    <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="androidium.org"/>
    </intent-filter>
</activity>
Comment

What is the function of an IntentFilter


An intent filter is an expression in an app's manifest
file that specifies the type of intents that the component
would like to receive.  When you create an implicit intent, the
Android system finds the appropriate component to start by
comparing the contents of the intent to the intent filters declared
in the manifest file of other apps on the device. If the
intent matches an intent filter, the system starts that component
and delivers it the Intent object.


<activity android:name=".HelloWorld"
    android:label="@string/app_name">
    <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <data android:scheme="http" android:host="androidium.org"/>
    </intent-filter>
</activity>
Comment

PREVIOUS NEXT
Code Example
Java :: java sort arraylist of floats 
Java :: minecraft detect specific item in chest with custom name 
Java :: hide background of button java swing 
Java :: overload and override in java 
Java :: encoding utf 
Java :: how to delete an element from an array in java data structure 
Java :: hdfs hadoop JobClient.java:876 error 
Java :: linked list vs vector 
Java :: java check if year is leap 
Java :: windows Jmeter java.net.BindException: Address already in use: connect 
Java :: thread priorities in java 
Java :: interface in solidity 
Java :: variables in java 
Java :: javafx list view does not update 
Java :: Explain JDK, JRE and JVM? 
Java :: set union java 
Java :: check if two lists are equal java 
Java :: how to recognize a pressed key in java 
Java :: java add element to map 
Java :: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 
Java :: jpql spring boot 
Java :: install oracle java ubuntu 20.04 
Java :: sort a list in java according to last name 
Java :: click on recyclerview item android animation 
Java :: jda documentation discord 
Java :: get current location android 
Java :: how to get ascii value of string letter in java 
Java :: java complex numbers 
Java :: array index out of bound exception in java 
Java :: Java Expression statements 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =