当您点击Google Maps and bing Maps链接时打开我的应用程序

我希望我的应用程序出现在建议的应用程序列表中,以打开诸如Google Maps这样的地图链接,我尝试了此代码,但没有用

    <activity
        android:name=".ui.splash.Splashactivity"
        android:screenOrientation="portrait"
        android:theme="@style/SplashTheme">
        <intent-filter>
            <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="https://maps.app.goo.gl/"
                android:pathPrefix="/favloc"
                android:scheme="https" />
            <data
                android:host="https://binged.it"
                android:pathPrefix="/favloc"
                android:scheme="https" />

            <data android:scheme="favloc"
                android:host="google"/>
        </intent-filter>
    </activity>
struts2010 回答:当您点击Google Maps and bing Maps链接时打开我的应用程序

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/2961373.html

大家都在问