Open android app via php

1

I have a web system and would like to call / open an android app installed on a tablet via a button on my system. Is it possible via php, javascript or html?

Thanks,

    
asked by anonymous 03.08.2018 / 21:30

1 answer

1

This is possible with any link. What matters is if the application has the intent configured in the Activity manifest.

Let's imagine the application manifest looks like this:

<activity>
<!-- ... -->

    <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="https" android:host="meuapp.com" />
    </intent-filter>

</activity>

If the application is installed on your device, you only need to have a link in your HTML such as <a href="https://meuapp.com/">Abrir App</a> that the application will capture and open automatically.

[edit]

If you did not develop the application, you should have the .apk of it.

Copy the installed APK from your mobile device to a PC that has the latest Android Studio installed.

Android Studio comes with an application called APK Analyzer that allows you to analyze what's inside the APK, and rebuilds the manifest so that you can read it.

Here's an example: link

    
03.08.2018 / 22:03