Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
53
rated 0 times [  56] [ 3]  / answers: 1 / hits: 79674  / 12 Years ago, thu, august 2, 2012, 12:00:00

I know that for opening android application from a link inside a web page we have to write the following in the AndroidManifest.xml:



        <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:scheme=my_scheme android:host=my_host />
</intent-filter>


The problem is that I wrote it in the following way:



        <intent-filter>
<action android:name=my_action/>
<category android:name=android.intent.category.DEFAULT />
<category android:name=android.intent.category.BROWSABLE />
<data android:scheme=my_scheme android:host=my_host />
</intent-filter>


I didn't add android.intent.action.VIEW and instead I added my own action that i made.
I can't change it because the version is already released.



The question is,




if there's a way to make the application run from JavaScript or simple
html page, maybe by defining the specific action in the page?




Thanks,



Paz.






SOLVED:



Thanks to David I found a solution:



<a href=intent://my_host#Intent;scheme=my_scheme;action=my_action;end>Link to my stuff</a> 

More From » android

 Answers
6

Try this:



Make your links look like this:



<a href=intent:#Intent;action=my_action;end>Link to my stuff</a>


Also have a look at Launch custom android application from android browser


[#83907] Wednesday, August 1, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
kieraelsies

Total Points: 718
Total Questions: 103
Total Answers: 104

Location: England
Member since Sun, May 21, 2023
1 Year ago
kieraelsies questions
Tue, Aug 3, 21, 00:00, 3 Years ago
Tue, Feb 23, 21, 00:00, 3 Years ago
Thu, Nov 12, 20, 00:00, 4 Years ago
Wed, Sep 9, 20, 00:00, 4 Years ago
Mon, Sep 16, 19, 00:00, 5 Years ago
;