Starting from Android 11, using Settings.ACTION_MANAGE_OVERLAY_PERMISSION will ignore the package name, and instead will show a list of all apps that can have this permission. So you have to navigate and find your app to enable/disable the permission.
There is a way to highlight the specific app you want in the list instead of having to search for it through all the apps. Like this.
Following something similar to this: Highlighting a menu item in system settings
I want to make the same but for the "Draw over other apps" setting. (Settings.ACTION_MANAGE_OVERLAY_PERMISSION)
According to this answer, there are undocumented features of Android that can be used.
I want to know if something similar to what I am trying to achieve is possible and how?
Thanks in advance!
Related
I want to make an application that does something in the background, and to control its behavior, I wanted to have a quick-settings tile.
I managed to get the toggle working just fine, but now I want to know if it is possible to have a 'drop down' menu for the user to be able to choose an option out of 3 possible options. (3 different modes for the 'on' state)
Something like the wifi and bluetooth tiles here, that have that little arrow
Is this a feature only for system apps, or is there a way to do it?
It seems from here that unfortunately third party apps cannot use this feature.
Quote:
Note: You’ll notice some of the system tiles have an additional UI that replaces the whole quick settings pane with a custom UI. Unfortunately, this isn’t available to third party tiles.
I'm developing app which have some Buttons. Now for UX perspective I want to show touch or taps on click of that.
These can be achieved by selectors for buttons that I know Other than is In all android mobiles within developer options showtouch/showtap options is available. These can be set programmatically but once If I set all applications will enable this option.
Can I restrict this option only to my app?
If yes can I customize this for better UI?
Thanks in Advance.
Any links/code related this will be helpful.
You can't do this using something external from your App.
There is nothing to do that.
The only solution could be to create a transparent View as an "Overlay" and show it for few milliseconds on the specific point where the Touch event has occurred.
Obliviously you have to show that Overlay View only when required by your UI and leave the display free-from-overlays when your App is not in foreground/use.
A special Permission is required for Overlay View starting from Marshmallow 6.x and should be prompted to the user that could accept or denied it.
I am trying to work on one idea. whenever user selects any text anywhere in any application' on android device i want to show one option to user just like we get an option for copy.
Is it possible to change android's default behavior like this. When user selects any text i want to show one option just like "copy" and when user selects that option i want to perform some operation on that selected text.
Any idea how can i achieve this ?
Is it possible to change android's default behavior like this
Not from Android 1.0 through 5.1.
The M Developer Preview offers a means of doing this. Activities supporting the PROCESS_TEXT action will show up in the floating action mode that appears when users select text:
However, as this is not well-documented, it remains to be seen if this will make it into the final edition of Android M.
I´m looking a way to add my app in select an action menu that appears when one user wants to add one picture in another app (i.e chats apps).
So, when the user selects that option, android lists the apps like camera, gallery, and others.
Well, i want to appear in that menu. i know it is possible (intents, intents filters ?), but I couldn`t get the answer :(.
thanks, and sorry for my baad-bad english :$
Adding yourself to the menu can be done as outlined in this question. Actually providing a response can be done as seen here.
I have an application that I have made searchable, and I want to include it in the Google Search bar by default, or give my users the option of enabling it from within my application. I have already exposed it by adding android:includeInGlobalSearch into my searchable.xml, but how would I enable it from my settings within the application?
I know I can also launch the Settings.ACTION_SEARCH_SETTINGS activity and have them select it, but how would I shift the focus/scroll to my application if it is below the initial fold?
AFAIK, you can't. The user has to enable it, you can't force them to. You can' control the focus scroll either, best you could do is experiment with different names and see how this affects sorting.