Open Android app using intent-filter not working

前端 未结 2 1377
广开言路
广开言路 2021-01-29 11:59

I have using the following code in the android manifest file,but its not open the application.

   

        
相关标签:
2条回答
  • 2021-01-29 12:24

    It's something in this block:

    <intent-filter>
              <data android:scheme="market" android:host="details" android:path="" />
              <data android:scheme="http" android:host="play.google.com" android:pathPattern="/store/apps/details?id=.*" />
              <data android:scheme="https" android:host="play.google.com" android:pathPattern="/store/apps/details?id=.*" />
              <action android:name="android.intent.action.VIEW" />
              <category android:name="android.intent.category.DEFAULT" />
              <category android:name="android.intent.category.BROWSABLE" />
    </intent-filter>
    

    Without that block, it will work 100%. Just use process of elimination. :)

    0 讨论(0)
  • 2021-01-29 12:38

    you will have to to single intent-filters for each scheme. have a look here: https://github.com/ligi/PassAndroid/blob/master/src/main/AndroidManifest.xml

    0 讨论(0)
提交回复
热议问题