Open application with an intent url

0

I am trying to open my application from an intent, open it from the app of chorome, with the link with http the application asks me to choose whether to open it from my app or from the browsers that I have installed but with the other opens me play store although I already have the app installed and as not yet this upload no results appear, I need it to be with an intent since I need it to link it to a beacon with a nerby notification so it should be a normal intent

the first intent-filter was just a test, it works like it has to be but the second is the one that I need to work, that when opening it the application opens if it is installed and if it does not open the store, to be able to put the url in this

<a href="http://example.com/someresource/ "> htpp</a></br>
<a href="intent://co.fupb/#Intent;scheme=co.fup;package=co.fup.beaconeventos;end">intent</a></br>
<?xml version="1.0" encoding="utf-8"?>

                   

    <activity android:name=".MainActivity" />
    <activity android:name=".activity.Offine" />
    <activity
        android:name=".ui.SplashScreen"
        android:theme="@style/SplashTheme">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".activity.auth.LoginActivity"
        android:label="@string/title_activity_login" />
    <activity android:name=".activity.model.Event" />
    <activity android:name=".activity.model.EventList" />
    <activity android:name=".activity.auth.RegisterActivity">
        <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="example.com"
                android:pathPrefix="/someresource/"
                android:scheme="http" />
        </intent-filter>
        <intent-filter>
        <data
            android:host="co.fup"
            android:scheme="co.fup" />
        <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>

    </intent-filter>

    </activity>
</application>

    
asked by jultrun 23.08.2018 в 20:02
source

1 answer

0

I already solved it, I thought that the package of the intent was given by the manifest when it was from the application of the build.gradle

    
answered by 26.08.2018 / 09:57
source