Display PopUp Display Permission - android

In xiaomi phones, When giving permission to Display Pop-up windows how can we automatically give permission to Display Pop-up windows while running in the background. how can we achieve this.

Related

System permission dialog is not centered

I have a minor issue, the permission dialog that pops up to request the user's consent is not centered in the middle of the screen when I run the app on My Samsung Galaxy Tab A8.
While it's centered as expected when I run the app on Android Studio's emulator.
Did anyone face this issue?

How to enable autostart option for my app in ASUS zenfone2 and other ASUS models

I tried a lot of solution and links but nothing being helpful, there were many links for MI and few more, but no particular solution there for ASUS phone, so if any body have solution that works, please provide such solution.Because I am not able to know exact activity name of ASUS phone
You can do something like this,
1.From the HOME screen, tap on APPS.
2. From the APPS screen, tap on the AUTO-START MANAGER icon.
3.You will first see the DOWNLOADED apps field you can toggle apps to ALLOW or DENY with a tap in this field.
Choose the APPS accordingly to your preference to which you want to start up on first boot which also gives it full start up privilege access in RAM on the OS level.
4.Tapping on the PRELOADED option will show the PRELOADED apps. Choose with you want to toggle privileges by tapping on the applicable app to ALLOW or DENY start-up access in the OS.
5.Finally, tapping on ADVANCE options/settings (The three dots on the upper right hand corner) will toggle advance selections for the AUTO-START MANAGER app. Selections to choose are - SORT BY, SHOW ALL APPS, ENABLE NOTIFICATIONS, RESTORE TO INITIAL CONFIGURATION, NOTICE, FEEDBACK & HELP.
Did you try this ?

Android Marshmallow location permission does not work even though permission is granted by user

I am developing an application which requires location permission for Android Marshmallow. I followed all the steps (function calls) required to implement that.
When I run the application it pop up a box asking for the user permission. When I select yes, it display another pop up saying "Screen overlay detected" and that takes me to setting screen where list of applications is shown. There I uncheck all the applications and press back button to return to my app.
When onRequestPermissionsResult() callback is called, I can see the permission is not granted. It happen all the time.
Why does it display "screen overlay detected" all the time as I have already unselected/unchecked all the apps in the list?
Why permission is not granted although I have pressed yes when it ask for the permission?
The reason: This message appears when you’re running a floating app, and then start a newly installed one, which requests access rights. Floating apps include the chat heads of Facebook Messenger that can appear floating above other apps, etc.
Affected Smartphones: Users across the internet have reported experiencing this problem on Samsung and Motorola smartphones. It seems likely to affect many manufacturers. AndroidPIT managed to replicate the behavior on a Vodafone and a Samsung smartphone.
Problem apps: We replicated the problem using Drupe, but CleanMaster, Lux and Twilight have all been blamed for the problem.
The technical background: As a security measure, apps ask for permission to use certain parts of your phone (internal storage, camera, etc.). In theory, a display overlay can interfere with the dialogue requesting permission, so you need to disable the feature to interact with the dialogue.
Now the Solution, how to fix it:
Step one: "Screen overlay detected" fix
Find you what apps have permission to draw over the screen. On a non-Samsung smartphone, follow these steps:
Open the Settings
Tap the search icon at the top right
Enter the search term “draw”
Tap Draw over other apps
Select Draw over other apps
For Samsung users:
Open the Settings
Then Applications > Application manager
Press on More > Apps that can appear on top
Step two:
You will find yourself in front of a list of apps that have permission to use floating buttons or other screen overlays. Now you need to identify the problem app and temporarily deny it permission to draw over the screen. Here is are some pointers on how to identify the app that’s causing trouble:
Do you see an app bubble on your screen? If do, this app is almost certainly the cause. Either you hide the app bubble or disable the app in the list
Do you have an app installed that changes the colors on the display or adjusts the brightness?
Reportedly, Clean Master can be a trouble maker. If you see Clean Master in the list, disable it
If there’s no obvious cause, disable everything
Step three:
Now you can try launching the app again, and it should request permissions without the “Display overlay detected” error getting in the way.
For Samsung users: The one-handed keyboard setting could be the root cause. Deactivate it by going to Settings> Advanced features > One-handed operation.
Step four: reactivate screen overlays
In order for the app(s) that you have disabled in step two to work again, you need to re-enable its overlay permissions. If you turned off all apps, it might be worth considering only reactivating those apps that you actually use.
This is a rather inelegant workaround, but it's the best we have until Google makes the necessary changes to prevent app overlays from interfering with permission dialogues.
Has this guide helped? If you are still experiencing the error after following our guide, leave a comment, so I can try and address the problem.
This is the issue reported many times.
The possible solutions are:
1) delete apps like(cleanmaster, battery saver, etc.) or go to settings/app/cleanmaster/force stop.
2) Or you can also remove the permissions for cleanmaster.
3) determine which app is drawing over other apps. Turn that off beforehand.
Note: Sometimes unchecking does not actually solve the problem of the overlay.

Is it possible to take a screenshot of currently displayed window programmatically if my app is running in the background without ROOT?

What I want to do:
1.Launch the application developed by myself.
2.Then the application will launch another designated app by clicking a certain button.
3.My application then keeps running in the background and only display a small floating window above all other windows.
4.By clicking the small floating window, my application will take a screenshot (programmatically) of the currently displayed window and save it to the external storage.
I've Googled around the internet, and found similar questions like this:
How to programmatically take a screenshot in Android?
Anyone knows if it's possible to do this kind of thing without Root privilege or if so how?
ADD:
I may asked my question in the wrong way, actually I just want to know if it's possible to take a screenshot of the currently displayed window when my app is running in the background.

href="tel" opening Add to Contact Popup in Cordova App

I am using simple code to open the dial screen of mobile.
document.location.href = "tel:+1-1800-555-5555";
But when I am running app on Nexus Tablet, Its opening a pop Up with Add to Contact or Close option.
I want to open the number in dialer screen.
Whats an issue??
Maybe because it's a tablet, so there is no dialer?

Categories

Resources