AlexanderSofronov / iptv.example

Example of a custom configured IPTV Android app based on IPTV Core.
Apache License 2.0
229 stars 143 forks source link

Add intent-filter to manifest #21

Open ncruces opened 5 years ago

ncruces commented 5 years ago

Please consider adding the following intent filter to your activity:

<activity android:exported="true" android:label="@string/app_name"
        android:name=".ChannelsActivity">
    <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" />
        <data android:scheme="https" />
    </intent-filter>
</activity>

This would allow anyone to start IPTV directly from Chrome through an intent url such as:

intent://lista.kodiportugal.com#Intent;package=ru.iptvremote.android.iptv.core;component=ru.iptvremote.android.iptv.core.ChannelsActivity;scheme=http;end 

ncruces commented 5 years ago

I see that your ru.iptvremote.android.iptv app supports it, so I'll link to that (which makes more sense, I guess).

Is there any way to automatically set the name of the playlist, perhaps with an intent extra or something?

Thanks!