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

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.

Related

How to exclude overlay from screenshot?

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.

Addition of UI elements in a cardboard application

I want to make a 360 panorama viewer in Android studio.
The idea is to make it exactly like the existing googles street view application.
I want to know how to add a/some UI element inside the VR view so that if a user looks at it, the 360 picture would change to some other picture.
I know it is a long way to go but for now, if somebody could help me or direct me towards achieving it, it will really help.
Thanks in Advance.
A good place to start is a demo app by Google called TreasureHunt (this is part of GoogleVR). Download the sample code compile and run you'll get a sense of what you need to do. TreasureHunt is also found on Google Play.

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

Beginning with OpenCV in Android

I want to create an application that detects walls from the image and paints it with color choosen by user . I looked it up and found out OpenCV is a way to go.
I downloaded the sdk and imported in AndroidStudio.
I am a complete beginner to OpenCV and i would appreciate if i could get just the hints where to start from .
I want to know what terms and methods to look forward(in the docs) in order to implement this particular task (detecting wall in image and fillcolor).
What would be the steps required to process and manipulate image for this operation ?
Thanks.
You can start with some tutorials. It is a best way to satrt with adn learn some basics and claasses and their usage.
Soem links are as follows-
first-
Second

Is it possible to discover if picture was taken?

I would like to discover that picture was taken by default camera app. Just like Google plus discovers it and upload it to server. I failed in finding it in documentation. Does anybody have a hint where to find this kind of information?
You can have 2 things as far as I know
An intent when media is added, which is the below I believe. I'm not really sure how much use it is in all cases, you should have to try it out :)
Intent.ACTION_MEDIA_SCANNER_SCAN_FILE
You can keep an eye on the special kind of content you wish to know about when it changes. See for an exmple here: http://mylifewithandroid.blogspot.nl/2008/03/observing-content.html

Categories

Resources