16
edits
Ivan.Savov (talk | contribs) (updates from initial discussions) |
Ivan.Savov (talk | contribs) |
||
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. | ||
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 | |||
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" /> | ||
<data android:host="view_channel"/> | |||
<data android:host="view_node"/> | |||
<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" /> | ||
<data android:host="view_zimfile"/> | |||
<data android:host="view_page"/> | |||
<data android:pathPattern=".*"/> | |||
</intent-filter> | </intent-filter> | ||
</activity> | </activity> |
edits