Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
166
rated 0 times [  168] [ 2]  / answers: 1 / hits: 70227  / 12 Years ago, fri, october 12, 2012, 12:00:00

I have a requirement like this and something similar to that has been implemented by Android Pit app-store.



I need to check if the Android app has been installed on the device using a mobile web page (PHP and JS), and if installed launch the app immediately.



These are the intermediate pages used by Android pit.



When app has not been installed - http://www.androidpit.com/en/android/market/app-center-mobile?pname=com.ocito.laredoute



When app has been already installed - http://www.androidpit.com/en/qrdl/com.mobage.ww.a692.Bahamut_Android



Does anyone know how to implement this?


More From » php

 Answers
22

Fortunately, this is not possible, for obvious privacy reasons.



The closest that you can do is in the application, have an activity that has an <intent-filter> for some URL structure, and have a link in the mobile Web site to a matching URL.



If the user clicks the link and the app is installed, the activity will be a chooser option for the user.



If the user clicks the link and the app is not installed, or they choose to stick with their Web browser from the chooser, whatever Web page exists at that URL will be displayed (E.g., instructions of how to download the app).


[#82596] Wednesday, October 10, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
danar

Total Points: 271
Total Questions: 94
Total Answers: 93

Location: Ecuador
Member since Thu, Jun 4, 2020
4 Years ago
;