Android http URL scheme is not working when I try to launch my application from a link on my website

Ayhan Dorman

I'm trying to achieve to have my application launched (or fire an open-in dialog) when a link pointing to http://example.com/123 on my website is clicked. In my AndroidManifest.xml I added the following activity to register my app for 'http' links with host 'example.com'. But it simply visits http://example.com/123 link and nothing happens other than that when I touch on the link.

<activity xmlns:android="http://schemas.android.com/apk/res/android"
          android:name=".TestActivity"
          android:label="myapplication">
<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:scheme="http" />
</intent-filter>
</activity> 

Also tried with

android:pathPattern = ".*"

or

android:pathPattern = "*"

but none of them work. I appreciate for any suggestions from now.

Simas

Try using pathPrefix instead of pathPattern.

<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:scheme="http"
        android:pathPrefix="/"/>
</intent-filter>

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Android http URL scheme is not working when I try to launch my application from a link on my website

分類Dev

Launch an application particluar activity with data from my application on Android

分類Dev

My CMS is stripping out the ? at the end of a URL when I try to save the link... is there a way to make it stick?

分類Dev

NoSuchMethodException when trying to launch my app from Android Studio

分類Dev

How to launch android application from my html5 mobile web application

分類Dev

When asking to launch my application to google assistant I get a message about google sharing data preventing to launch the app

分類Dev

Launch an my application from another application and then return back

分類Dev

My drop down menu does not show when I move my mouse from the anchor tag link on my menu

分類Dev

How do I right-click when connected to my Windows 7 PC from my Android Tablet?

分類Dev

How do i get the launch intent for my work profile app from my app in the primary profile?

分類Dev

How do i remove white border from my code for website?

分類Dev

How do I get PPTP VPN working from my home network when it already works elsewhere?

分類Dev

When will my application be reviewed?

分類Dev

htaccess - rewrite rule not working when requested URL is a folder on my system

分類Dev

When I try pause and play in jsFiddle, my code works but it doesn't work in my html page

分類Dev

How post Image and Link URL in Google Plus from Android Application?

分類Dev

Why is my local website not working in IIS

分類Dev

some features of my website is not working on localhost

分類Dev

Moving my website to http but HSTS causing problems

分類Dev

USB port not working when I start my laptop

分類Dev

Libgdx. when i exit my game admob is still working

分類Dev

Generate a link to download the mobile application from the website

分類Dev

I get an error when I try to install my project packages with npm i

分類Dev

Trying to visit my website at /get_started redirects to / when I copy and paste, but not when I type it manually

分類Dev

black screen when I run my iOS application

分類Dev

In php how can I download images from external website and save into my website?

分類Dev

how can i link an XML data file from my hard drive (not web) to my project?

分類Dev

scheme host not working on android lollipop, click on link to open app

分類Dev

When I try to login using AWS Cognito I get an AccessDeniedException about my custom Lambda trigger

Related 関連記事

  1. 1

    Android http URL scheme is not working when I try to launch my application from a link on my website

  2. 2

    Launch an application particluar activity with data from my application on Android

  3. 3

    My CMS is stripping out the ? at the end of a URL when I try to save the link... is there a way to make it stick?

  4. 4

    NoSuchMethodException when trying to launch my app from Android Studio

  5. 5

    How to launch android application from my html5 mobile web application

  6. 6

    When asking to launch my application to google assistant I get a message about google sharing data preventing to launch the app

  7. 7

    Launch an my application from another application and then return back

  8. 8

    My drop down menu does not show when I move my mouse from the anchor tag link on my menu

  9. 9

    How do I right-click when connected to my Windows 7 PC from my Android Tablet?

  10. 10

    How do i get the launch intent for my work profile app from my app in the primary profile?

  11. 11

    How do i remove white border from my code for website?

  12. 12

    How do I get PPTP VPN working from my home network when it already works elsewhere?

  13. 13

    When will my application be reviewed?

  14. 14

    htaccess - rewrite rule not working when requested URL is a folder on my system

  15. 15

    When I try pause and play in jsFiddle, my code works but it doesn't work in my html page

  16. 16

    How post Image and Link URL in Google Plus from Android Application?

  17. 17

    Why is my local website not working in IIS

  18. 18

    some features of my website is not working on localhost

  19. 19

    Moving my website to http but HSTS causing problems

  20. 20

    USB port not working when I start my laptop

  21. 21

    Libgdx. when i exit my game admob is still working

  22. 22

    Generate a link to download the mobile application from the website

  23. 23

    I get an error when I try to install my project packages with npm i

  24. 24

    Trying to visit my website at /get_started redirects to / when I copy and paste, but not when I type it manually

  25. 25

    black screen when I run my iOS application

  26. 26

    In php how can I download images from external website and save into my website?

  27. 27

    how can i link an XML data file from my hard drive (not web) to my project?

  28. 28

    scheme host not working on android lollipop, click on link to open app

  29. 29

    When I try to login using AWS Cognito I get an AccessDeniedException about my custom Lambda trigger

ホットタグ

アーカイブ