瀏覽代碼

Merge pull request #14 from ilikeorangutans/allow_urls_to_be_shared

Allow URLs to be shared to the app
zadam 3 年之前
父節點
當前提交
c2999cc144
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      app/src/main/AndroidManifest.xml

+ 8 - 0
app/src/main/AndroidManifest.xml

@@ -56,6 +56,14 @@
 
                 <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:scheme="http" />
+                <data android:scheme="https" />
+            </intent-filter>
         </activity>
     </application>