Blur (Hide) content of app when it goes to the recents - android

In application I need to Blur content when it goes to the 'recents' and also to make screenshot when user work with the app (this is optional, but high needed feature).
I see a few questions (question 1, question 2 ) and answers about this - but none of them are work!
But users dont't bring me - one of them send my screenshot from his phone (Oneplus with Android 13) - when all secure apps hide its content with this screen and blur screenshot of app -
Does anyone know - what is it? Can it be some system GUI part of Oneplus? Or maybe at this moment there is some lib, that CAN hide content? Or maybe something else?
Also Same apps on another devices with same Android OS version doesn't hide content.
So, I have 2 questions -
How to not only hide (with white screen as default), but also BLUR content when the app goes to the recents?
Can solution on screenshot be specific part of phone GUI?

Related

Android - How to make an app displayed in a small screen while the rest of screen is still visible and clickable

I have a request to reduce my app screen size and the rest of the screen space are still visible and clickable for user.
It means when my app is running, user can click some icons or buttons outside of my application.
What I found are using such as Dialogs or Multiple Fragments. However, those solutions are useful when all are in your main activity. But in my case, the rest of the screen is from Home screen or other screens, not from my app screen.
Could someone have an idea for this kind of concept?
Here is my request concept image
Searching from internet
You don't need to do anything for this. Android supports splitt screen since Android 7.0.
Alternatively you can enable Picture-In-Picture mode for your app which is supported since Android 8.

Modify Progressive Web App background colour

I have a Progressive Web App which is capable of being added to home screen. When the home screen icon is tapped (on mobile) there is a (kind of) welcome page with icon that appears before opening the actual app.
I have set the background colour of that welcome screen to be blue in menifest.json. I need to make it brown. I have modified the menifest.json file and updated the website. But the mobile seems to have cached it permanently and it is still showing blue.
I have refreshed page many times and added the web app to home screen multiple times. But it is never changing.
I have also changed the cache name in service-worker.js. Yet no luck!
Plug in your device
visit chrome://inspect
Inspect the device / tab you are looking at for your site
In DevTools go to Network tab
Select 'Disable Cache'
Refresh your web app
Then try adding to homescreen
If you get the correct color it's a good indicator that your previous manifest was cached and you should consider a caching strategy, either file re-visioning the manifest.json file (i.e. manifest.12345.json) OR set appropriate headers.
One thing to note: on Android there is no way to update the icon / manifest details once it's added to homescreen - this is a known issue / bug.

How to get rid of the "home+ return" bar?

I have an android app which does run full screen .. done by the mainifest file
Works fine on units with seperate buttons like Samsung s3
Now running the same app on another unit without physical buttoms they will apear in the buttom of the screen see the red cirkel on attached image
I need a hint to remove this bar in code?
http://i44.tinypic.com/35ba1lj.jpg (image)
You cannot remove this bar for security and usability reasons.
Doing so would make it impossible for the user to exit your app naturally, as both the back and the home button will disappear. Not only is this terrible for usability and system consistency, but it also poses a security risk as malicious apps can take over the system by removing the bar.

Android: any way to check if "menu" button will exist when full-screen?

My app has code to go full-screen where sensible to do so -- it's sensible on most Android 1 and 2 devices, but under Android 3 for example going full-screen loses the app menu button, and at the moment I don't implement my own menu button so users can't (or at least can't easily) get to the app's menu.
At the moment I test for Android version < 3, and go full-screen if that's the case, but I have users with Android 2 tablets (Viewsonic view pad 10s for example) where this isn't sensible (the Viewsonic user tells me she has to hold down the back button to get app's menu to appear).
Is there a better way of testing whether going full-screen will lose the menu button? Or going full screen only if it's sensible to do so?
Thanks for any help you can give. Let me know if you need more info or if the above isn't clear.
Mark
Is there a better way of testing whether going full-screen will lose the menu button?
No. The Viewsonic device in question does not qualify for the Android Market, AFAIK, and all bets are off in terms of compatibility for devices that fail to meet the requirements for the Market.

How to place a screen control in the home screen that will be always visible

I need a screen control (possibly but not mandatory an app widget) that will seat
on Android's homescreen and will always be visible to the user - even when he scrolls the homescreen to the next page.
Please help me if any body have done this before.
I think the only way you will be able to do this is if you implement your own Launcher.
The functionality that you're looking for, being able to place a static widget on every screen of the launcher regardless of how many screens they have, isn't currently available in Android, nor any of the launcher apps out there (Go launcher, ADW, Launcher pro etc) nor any of the versions of Android which have been rewritten by the phone manufacturers (HTC's Sense, Samsungs Touch Wiz etc)
It's a big job to write a Launcher yourself, but the stock Android Launcher code is available to play about with from https://android.googlesource.com.

Categories

Resources