App does not appear in the list of app you can share content with

Asked

Viewed 294 times

0

Well I have an app that serves to download and watch videos online, one thing I’ve been trying to do for some time is make my app appear in the list when sharing a link or an html page.

Here is my manifesto:

<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.samuelives.videoplayer">

    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <uses-permission android:name="android.permission.CHANGE_WIFI_MULTICAST_STATE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WAKE_LOCK"/>
    <uses-permission android:name="android.permission.BLUETOOTH"/>
    <uses-permission android:name="android.permission.BLUETOOTH_ADMIN"/>

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme">

        <activity android:name="com.samuelives.videoplayer.Main">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>

        </activity>

        <activity android:name="com.samuelives.videoplayer.player.Player"/>

        <!-- Activity responsável por abrir links externos ou páginas, supostamente deveria fazer com que aparecesse na lista de aplicativos ao compartilhar um conteúdo--> 
        <activity android:name="com.samuelives.videoplayer.MainNoGui">

            <meta-data android:name="android.support.PARENT_ACTIVITY"
                android:value="com.samuelives.videoplayer.Main"/>

            <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"/>
                <data android:mimeType="video/*"/>
                <data android:mimeType="text/html"/>
                <data android:mimeType="application/xhtml+xml"/>
                <data android:mimeType="text/php"/>
                <data android:mimeType="text/x-php"/>
                <data android:mimeType="application/php"/>
                <data android:mimeType="application/x-php"/>
                <data android:mimeType="application/x-httpd-php"/>
                <data android:mimeType="application/x-httpd-php-source"/>

            </intent-filter>

        </activity>

        <!--Cast Activity-->

    </application>
</manifest>

But here’s what comes out:

página 1 página 2 página 3

Just doesn’t appear on the list

  • Chrome share button does not share the text of the URL? So do not enter your Intent-Filters?

  • My app is appearing when I click on a link in the youtube app for example, but not in the share action

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.