This question already has answers here:
Detect from browser if a specific application is installed in Android
(5 answers)
Closed 8 years ago.
I can launch my app from the browser if it is installed using intent-filters. If the app is not installed, I would like the user brought to the app specific page in the market. I don't care if I have to handle this or if the platform does this for me, I only need to know how to set up the intent-filter, protocols, anchor tags, etc.
thank you!
There is no "normal" way to do it. What you can do, however, is to always provide a link to your app in Google Play and have an intent in your app handle that link. Thus, the app will open when the market link is clicked if it has already been installed. The downside is if the app is installed, the user will be presented with a dialog and will have to make a choice of whether to launch the link in a browser or in your app.
See this answer for a code sample: https://stackoverflow.com/a/12901352/379245
Related
This question already has answers here:
Kiosk mode in Android
(11 answers)
Closed 7 years ago.
Is there a way to hide all apps installed on the device and make only one app available to the user? In a way that the app automatically starts as soon as the screen is unlocked?
What I basically want to do is to have a device that's dedicated to the use of a single app. Can this somehow be accomplished? What options are available?
Since this app won't be distributed through google play or any other official channel, any even undocumented hacks would be an option. Any advise is welcome.
The only way that I think this can be implemented is by creating an custom launcher and include your app inside that launcher.
This question already has an answer here:
Is it possible to intercept app uninstall?
(1 answer)
Closed 8 years ago.
I understand that this question has been asked a number of times. But I would like to know if I can open a webpage after my app is uninstalled.
Before you say no, Please note that there are some apps like apus launcher which can detect when their app is uninstalled and can open a webpage after uninstall.
Thanks a lot
Not sure about Apus Launcher's uninstall bahavior, but this provides a pretty definitive no to your question...
'The package that is being installed does not receive this Intent.'
http://developer.android.com/reference/android/content/Intent.html#ACTION_PACKAGE_REMOVED
Just installed Apus Launcher, ran it, and then uninstalled it. As I expected, it doesn't put up any webpage after uninstall - I fear you have been misinformed.
(Apus is however doing some clever things, such as placing an overlay around the chooser dialog to encourage you to choose Apus if your system has multiple apps capable of handling a particular intent).
I notice that there are multiple Apus produced apps - if you have multiple of these installed, then it's very possible to write two apps that each detect the other app being uninstalled - but not the case that any one of the apps can detect its own uninstallation.
This question already has an answer here:
override Home key in android ICS
(1 answer)
Closed 8 years ago.
How can we override the home key in Android JB and above.I have searched a lot of threads but those doesn't work for Latest android versions.Also this is possible as I have checked in some apps available in Play Store such as "Active LockScreen".
you cannot override the home button for security reason. it is the only way a user can always leave an app
As of now I have found the way by making my app Launcher and let the user chose if he/she want to disable the home key functionality while App is running.While App is not in foreground My App fires Intent DEFAULT_LAUNCHER_INTENT to display the DEFAULT Launcher.
I'll post if find another work around without making the app Launcher.
I wanted to have a web page with a link pointing to the apk app in a market (this is possible), but if the app already exists on the device did not want him to redirect the market but that the app is open soon as the app on the device.
Is that possible?
thank you
There's no way to do that on a website. You can create a link to the application on Market, and if the user is on an Android device, he or she will be redirected to the Market application - from here it's possible to see if it's installed or not.
Should you want to do it in Java code, you can use #Pedro's advice with a simple check.
You can use PackageManager.getInstalledApplications and check if the app you're looking for is listed.
This question already has answers here:
How can I send an Android app that I'm developing to someone over e-mail?
(10 answers)
Closed 9 years ago.
Hey, this might be simple but I dunno how to go about it. I have an app that I'm working on, and I'd like my friend to take a look at it. How can I go about sending them the apk package so they can play with the app?
You can send it as an email attachment, for instance. The process for installing it is the same as if you get the app from a source other than Market, and is documented in many places. This is the first hit that I got on Google.
You can find the .APK file in the bin directory of the Eclipse project. Also, keep in mind that if you don't sign your application with a valid certificate your friend will have to explicitly enable the 'install third party applications'; otherwise the SO won't let you install it.
Send it to them and use appsinstaller (available from the market) if android os < 2.2. Or onymous (cant remember the spelling, but a market search of installer pulls it up) if using android os 2.2 +.
From my experience, I am unable to save email attachments (if sending the apk via email and using the default email app). Otherwise, they could use their browser and download the attachment and use the programs above to install it.