Explorar o código

Added intent filter for main activity

Vadik Sirekanyan %!s(int64=7) %!d(string=hai) anos
pai
achega
982a26c372
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      app/src/main/AndroidManifest.xml

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

@@ -25,6 +25,14 @@
                 <action android:name="android.intent.action.MAIN"/>
                 <category android:name="android.intent.category.LAUNCHER"/>
             </intent-filter>
+            <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:host="www.knigopis.com"
+                    android:scheme="http" />
+            </intent-filter>
         </activity>
 
         <activity android:name=".BookActivity"/>