How to exclude overlay from screenshot? - android

Based in this answer I think that exists a solution at least to system apps (or probably also in rooted devices?). Happens that i not understood the code example linked on answer comments. Someone could explain a step by step to achieve this please (with a code example if possible)? Thanks in advance.

Because of androids way of handling screenshots, excluding the overlay is not possible. But you could, as stated in your link, make the screenshot without your overlay.
This would result in having unrendered holes in your screenshot, whrere there would be only a black background.
If you want that, you could easyly just make your overlay black of the second you shoot the screenshot, or even disable the visibility, to get a clean screenshot. To give you a more detailed answer, we would need a more prescise question with examples and ideas how you wrote your code.
EDIT:
The problem is, that you could theoretically dig into androids source code and change the screenshot behaviour. But with that you would create a new Android version on your own. As #Hassan Uddin stated. Running that on your phone would require you to dig deep into androids source code and possibly not find any answer there.

It is not possible because it's like a security feature. If you are willing to spy on someone's screen, then you are too late it's 2021... the OS will not let you do so... you have to MOD the OS instead

You can not exclude overlay from screen capture. you can hide or make it transparent in case of your overlay. you can not handle third part overlay.

Related

Create Pop-Up on camera while touching the camera using React-Native

I'm really new with React-Native and I'm not a front-end developer. That's why I don't know if it's possible to do what I'm asking.
I saw some apps, like Wikitude or NearestWiki, which have like pop ups in the camera while pointing with the camera to something.
I find it pretty amazing. I'm just wondering if it would be possible to make something like that with React-Native, but instead of giving the pop-up direct from backend, permitting that the user could "post" something and that other people that are near can see it with the camera. I mean, the user touch the screen, and can write something and when the post is saved, other people with the same app, can see the post of the first user in that place.
It would be quite funny. But I don't know if that's possible. And if that's possible, I would like to know, how.
Maybe someone knows a library or module that permits something like that. Or maybe someone can tell me how could I search for it, or give me some advice how could I start to write it.
I already solved the geolocation problem, that an user could open his camera, etc... but it remains the core, that the user could touch the screen and add a post, and then show it to other users.
I would be pretty glad if someone can at least tell me where to search.
From my experience of React Native so far I would have avoided it, but it seems there's a few others that think along the same lines. There's a similar question here that has some useful info, though it's a little out of date. A quick google search for "augmented reality react native" will bring up a few handy pages like this one.
Hope that helps, please let me know if you find anything that works!

How to create android multitasking view?

I am actually trying to recreate this type of view, that can be seen when clicking on the right button of Android 6.0
But it doesn't look like a recyclerview, does someone know anything about it ?
Thanks
For such questions, I always like to point people to the Android Open Source Project. Looking around there, you can quickly stumble upon the 'Recents' implementation in the SystemUI package:
https://android.googlesource.com/platform/frameworks/base/+/master/packages/SystemUI/src/com/android/systemui/recents?autodive=0%2F/
It's quite a complicated setup, but reading through it you will learn (and see) the exact implementation of the Recents system UI component, exactly as pictured in your above image. Start with the Recents.java than proceed around the RecentsActivity.java and see the views and the implementation for it. It's all custom and if you re-use their code (feel free), please note the license for using it!
Hope it helps!

Apply curtains/blinds to an area in an image

I am trying to create an app similar to "Kresta" app on Android.
I attached some images related to what I want to do.
I have tried searching but nothing has come up so far because I don't know what is this technique called. Please guide in the right direction.
Thanks.
I can probably add the curtains using bitmaps and canvas, I only need guidance in adding that editable yellow area.
You probably want to look at some of the libraries that are focused on image manipulation/transformation. The question you ask is very broad. Perhaps starting here will help you refine your search and/or questions: https://android-arsenal.com/tag/47

How can I put an image in, magnify and minimize it?

I need to put an png to my application, magnify, minimize and moving it, as in this picture , I don't know if there was a limit or not, I don't know how!
Help please :)
Here's the official photoviewer demo from IO last year to get you started. Or if you'd rather work with an external library check out PhotoView. I believe they both have the functionality you are looking for.

Indoor positioning system in android

I would like to ask a question regarding redpin indoor positioning system on android. I read somewhere stackoverflow about redpin and visited their website. From there i followed their instructions on how to set up redpin on android, but i only get a red dot pointing on the top left corner of the map i uploaded. I would like to know if anyone has successfully gotten redpin to work for android and assist me in doing so?....or maybe can tell me what am I doing wrong. Sorry to ask, I am very new at this, thank you.
For what I could experiment, it doesn't really work at first, probably because of the lack of fingerprints or something like that.
But when you have added quite a few locations, and try again to take locate, it starts pointing at a particular location.
For what I could notice, it works well on android 2.2, but there is some debug to do on 4.1 and 4.2 for it to work fine.
I hope this will help
U would better read about INS (inertial navigation system), it is a navigation system that uses your phone sensors for calculation your position.
It happens to me as well, but which is not an error, and I guess it's just a failure of updating. Press the redpin image, if it can start the measurement, then it works well.

Categories

Resources