Difference between revisions of "KiwixKolibri"

Jump to navigation Jump to search
no edit summary
(updates from initial discussions)
Line 253: Line 253:
* ACTION_VIEW intents that start with `kolibri://<path>` will be handled by the Kolibiri app (see below)
* ACTION_VIEW intents that start with `kolibri://<path>` will be handled by the Kolibiri app (see below)
* ACTION_VIEW intents starting with `kiwix://<path>` will be handled by the Kiwix app,
* ACTION_VIEW intents starting with `kiwix://<path>` will be handled by the Kiwix app,
* Suppose you're in the Kiwix app and you're browsing some videos from KA zim file. The exercises don't work within the Kiwix appthough, but you can click on an perseus exercise and the Kiwix app will send you to the Kolibri app as follows
* Suppose you're in the Kiwix app and you're browsing some videos from KA zim file.
Uri exercise = Uri.parse("kolibri:/learn/#/1ceff53605.../topics/c/845ce535...");<br>Intent callIntent = new Intent(Intent.ACTION_VIEW, exercise);
The exercises don't work within the Kiwix appthough, but you can click on an perseus exercise and the Kiwix app will send you to the Kolibri app as follows
// do check here
 
callIntent.startActivity()
    Uri exercise = Uri.parse("kolibri:/learn/#/1ceff53605.../topics/c/845ce535...");
    Intent callIntent = new Intent(Intent.ACTION_VIEW, exercise);
    // do check here
    callIntent.startActivity()
 
We could something like this in the Kolibri android app manifest:
We could something like this in the Kolibri android app manifest:
   
   
Line 269: Line 273:
             <category android:name="android.intent.category.BROWSABLE"/>
             <category android:name="android.intent.category.BROWSABLE"/>
             <data android:scheme="kolibri" />
             <data android:scheme="kolibri" />
             '''<nowiki><data android:host="view_channel"/></nowiki>'''
             <data android:host="view_channel"/>
             <nowiki><data android:host="view_node"/></nowiki>
             <data android:host="view_node"/>
             <nowiki><data android:pathPattern=".*"/></nowiki>
             <data android:pathPattern=".*"/>
         </intent-filter>
         </intent-filter>
     </activity>
     </activity>
Line 287: Line 291:
             <category android:name="android.intent.category.BROWSABLE"/>
             <category android:name="android.intent.category.BROWSABLE"/>
             <data android:scheme="kiwix" />
             <data android:scheme="kiwix" />
             '''<nowiki><data android:host="view_zimfile"/></nowiki>'''
             <data android:host="view_zimfile"/>
             <nowiki><data android:host="view_page"/></nowiki>
             <data android:host="view_page"/>
             <nowiki><data android:pathPattern=".*"/></nowiki>
             <data android:pathPattern=".*"/>
         </intent-filter>
         </intent-filter>
     </activity>
     </activity>
16

edits

Navigation menu