Some apps don't allow screenshots so how can I still take a screenshot?
It is my phone and I should be able to do whatever I want with it so why is there even a feature to disallow screenshots?
Banking apps and such tend to use
FLAG_SECURE for safety reasons, so that the screen can not be captured or recorded. But there's an Xposed module which disables
FLAG_SECURE system-wide and lets you take screenshots in apps that normally don't allow it. Naturally this requires root access in your device. Use this module with caution, though: as I said, it disables the flag system-wide.
You can use Vysor app and project your android screen to computer screen and then take screenshot on your PC.
Apps which are set with LayoutParams.FLAG_SECURE flag do not allow screenshots (or videos recording) to be taken. It is of-course your phone but the app belongs to its owner (and he can rightfully wish to prevent users from capturing something sensitive in nature). You're barred from taking a screenshot only for those screens that have the above flag set. However you can still take a screenshot by projecting your phone on the PC screen and capturing it. That way, the device has no idea that screenshot is taken.
Following on from 'user's' answer, using a program such as Droid@screen droid at screen will allow you to project your phone screen to the PC, and then screenshot it via the PC Prnt Scrn button.
UPDATE: Android screen mirror is a better and faster screen mirror
In some banks you must log in first and disable security measures in regards to mobile applications. I did it with my bank.
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?