简体   繁体   中英

Samsung browser - how to add app in Share menu

I have noticed with the Samsung browser, when you hold the image, there is a "Visit" and "Shared" icon that pops up.

Note: this question is just for the Samsung browser, Chrome doesn't show these icons, and works fine.

So I see the major apps, such as facebook. How do I get my app to appear in there?

在此处输入图像描述

I have added the Intent in the Activity

  <activity
        android:name=".ui.activities.MessageReceiverActivity"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">
        <intent-filter>
            <action android:name="android.intent.action.SEND" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="text/plain" />
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.SEND" />
            <category android:name="android.intent.category.DEFAULT" />
            <data android:mimeType="*/*" />
        </intent-filter>
    </activity>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM