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.
Related
This question already has answers here:
Android, Detect when other apps are launched
(8 answers)
Closed 6 years ago.
I have such a problem, it is necessary if you run any application to output Toast with the text "some application to run," and when closed by show again Toast with text "some application is completed."
For example launched Play Market, and in my app Toast with the text "Play Market is run."
I have no idea how it implemented, it seems necessary to use the Service Broadcast. Please tell me how to implement?
To the best of my knowledge, outside of possible security flaws, there is no reliable way to implement what you want on Android 5.0 and higher, for privacy and security reasons.
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 answers here:
Is there any way to dynamically change an app icon like Calendar app does?
(7 answers)
Closed 4 years ago.
I am new to android app development. (please be elaborate)
I want to make a live icon for my weather app which shows current temperature on the icon, just like MIUI calender app which shows date on its icon.
I browsed all over the internet but could not find a way to make a live icon. Even a link to a tutorial would be helpful.
edit:
I don't want to make a widget.
I don't want to change an icon of already published app, by update I meant the app be able to update the icon on the basis of the data it receives.
I want the icon to be dynamic instead of static.
Changing an application icon - Android
Change your application icon. For help follow the link: https://stackoverflow.com/a/10817936/3819836
Change +1 to your version code in manifest file So that users can get application updates for the version we are working for. For more help follow: Versioning Your Applications
Sign APK with an existing keystore (with which you published app to play store). For more help follow: Signing Your Applications
Upload this APK to the play store. Users will get an update for your application and after installing they'll have a changed icon as we've worked for.
In android OS can't provide us way to create a live launcher icon, for example facebook status counter, if you want to use you have to create your own logic, by default android didn't provide
I think, when you're saying 'live icon', you're actually referring to Android Widgets. Take a look at the official documentation for more info - http://developer.android.com/design/patterns/widgets.html .
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 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