Open android app via php

Asked

Viewed 1,577 times

2

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

Thank you,

1 answer

2


This can be done with any link. What matters is whether the application has the Intent configured in the Activity manifest.

Let’s imagine that the application manifest is 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 the device, just have in your HTML a link like <a href="https://meuapp.com/">Abrir App</a> that the application will capture and will open automatically.

[Edit]

If you haven’t developed the app, you should have the . apk from it.

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

Android Studio comes with an application called APK Analyzer that allows you to analyze what is inside the APK and, on top of that, it reconstructs the manifest so that you can read it.

See here an example: https://developer.android.com/studio/build/apk-analyzer#view_the_androidmanifestxml

  • For example, if I want to call a third party app via my system, would it be likewise? Grateful

Browser other questions tagged

You are not signed in. Login or sign up in order to post.