Open an APK from html

  1. 8 months ago

    I am at the point of giving up. I would gladly pay for help.
    All I want to do is open another app if it is there, if not goto a predefined website.
    This is what I goo so far...

    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="viewport" content="width=device-width,minimum-scale=1.0, maximum-scale=1.0" />
        <title>Site Name</title>
        <style>@media screen and (max-device-width:480px){body{-webkit-text-size-adjust:none}}</style>
     
     
    <data android:scheme="CinemaHD"
          android:host="com.yoku.marumovie.analytics"
          android:path="/data/app/com.yoku.marumovie.analytics-1/base.apk" 
    	  />
     </head>
    <body>
     
        <!-- button to Download App for new app users -->
        <form action="http://google.ca" target="_blank">
            <input type="submit" value="Download" />
        </form>
     
        <!-- button to Open App to specific screen for existing app users -->
        <form action="com.yoku.marumovie.analytics" target="_blank">
            <input type="submit" value="Open App" />
        </form>
     
    </body>
    </html>

    The app here is called CinemaHD but I'm just using that to test, it will change.
    Please help, can somone provide working code?

 

or Sign Up to reply!