Difference between revisions of "KiwixKolibri"

Jump to navigation Jump to search
no edit summary
Line 262: Line 262:


We could something like this in the Kolibri android app manifest:
We could something like this in the Kolibri android app manifest:
 
     <activity
     <activity
         android:name=".activities.LinkDispatcherActivity"
         android:name=".activities.LinkDispatcherActivity"
Line 268: Line 268:
         android:launchMode="singleInstance"
         android:launchMode="singleInstance"
         android:theme="@android:style/Theme.NoDisplay" >
         android:theme="@android:style/Theme.NoDisplay" >
        <nowiki>
         <intent-filter>
         <intent-filter>
             <action android:name="android.intent.action.VIEW"/>
             <action android:name="android.intent.action.VIEW"/>
Line 277: Line 278:
             <data android:pathPattern=".*"/>
             <data android:pathPattern=".*"/>
         </intent-filter>
         </intent-filter>
        </nowiki>
     </activity>
     </activity>


in the Kiwix android app
in the Kiwix android app
 
 
     <activity
     <activity
         android:name=".activities.LinkDispatcherActivity"
         android:name=".activities.LinkDispatcherActivity"
Line 286: Line 289:
         android:launchMode="singleInstance"
         android:launchMode="singleInstance"
         android:theme="@android:style/Theme.NoDisplay" >
         android:theme="@android:style/Theme.NoDisplay" >
        <nowiki>
         <intent-filter>
         <intent-filter>
             <action android:name="android.intent.action.VIEW"/>
             <action android:name="android.intent.action.VIEW"/>
Line 295: Line 299:
             <data android:pathPattern=".*"/>
             <data android:pathPattern=".*"/>
         </intent-filter>
         </intent-filter>
        </nowiki>
     </activity>
     </activity>


To verify there is an activity available that can respond to the intent, call <code>queryIntentActivities()</code> to get a list of activities capable of handling your <code>Intent</code>. If the returned <code>List</code> is not empty, you can safely use the intent. For example:
To verify there is an activity available that can respond to the intent, call <code>queryIntentActivities()</code> to get a list of activities capable of handling your <code>Intent</code>. If the returned <code>List</code> is not empty, you can safely use the intent. For example:
16

edits

Navigation menu