I have developed an Android app,When user enters particular url in browser the app which has been installed in device has to get opened.i have used below code in Androidmanifest file but app is not getting opened ,it is only opening in website.Please tell me what corrections have to make in my code?
url is :http://www.myurl.co.gdf
manifestfile.xml
<application
android:icon="@drawable/logo"
android:label="@string/app" >
<activity
android:name="com.app.Activity1"
android:configChanges="orientation|keyboardHidden"
android:label="@string/service"
android:screenOrientation="portrait"
android:theme="@style/aa_theme" >
<intent-filter android:label="@string/app" >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<data
android:host="www.myurl.co.gdf"
android:pathPrefix="/"
android:scheme="http" >
</data>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.VIEW" />
</intent-filter>
</activity>
<activity
android:name="com.app.Activity2"
android:configChanges="orientation|keyboardHidden"
android:label="@string/activity_title"
android:screenOrientation="portrait"
android:theme="@style/aa_theme" />
</application>
Here first screen that appears is Activity2(login screen) ,on login i will be navigated to Activity1(Home screen) screen