I am trying to make an application that, while the camera on the phone is running, only shows half of what the view finder sees. I have tried reading the documentation on accessing the camera hardware, however I am new to development and can't make much of it. Would this even be possible? And if so can someone please offer any tips on how I could go about this? Thanks very much.
Related
I am trying to take a screenshot of my android device programmatically.
I have found dozens of Questions and posts, years old and not current. For example:
How to programmatically take a screenshot on Android?
The Approach works in the way of taking a screenshot of my main application window. But I I want to take a screenshot of the whole device including other apps!
example:
Instead of the "Internal Storage" + Control overlay, the original app is recorded or alternatively, the tiny view of the control overlay.
Anyone an idea on how to record the current screen? I'm fairly sure there must be solutions as there are apps out there such as the following screen recorder:
https://play.google.com/store/apps/details?id=videoeditor.videorecorder.screenrecorder&hl=en
I'm looking for a way to get the contents of the screen in android but not for taking a screenshot.
A little background, I recently broke up with someone and want to create an app that will "censor" photos of her (ie: just pixelate them). I know how to write a training algo to be able to detect her, and I can write a service in Android that will just run in the background, but I've not yet come across a way to get the screen contents. My thought was to look at the screen and if she shows up in Instagram, texts, or any app, just pixelate that portion of the screen (or put a black square over it or whatever).
Unfortunately the android docs haven't helped me much, so does anyone have any experience doing so, or can you point me towards any thing that would help?
I'm not sure if this is a violation of any rules, so if it is, my humblest of apologies, I'm just stumped and feel free to mark this closed.
I'm working on an application for sharing SurfaceView's draws with other android devices in real time (as a streaming). So all the connected devices on the net should be able to get the same canvas, draw in real time and see the modifications of each others.
I didn't found a way to do that. I thought about capturing screen shots and share them, but it will not allow multi-users modification.
How can I manage that? Is there an API or something like that?
I couldn't find from where to start.
I'm new in Android programming. I've already program an application that makes the phone which has front camera likes a mirror. I use front camera to do that, but a problem is that when I look at myself via the screen, my head is stretched (it means my head is lengthen) and it looks so funny. Could anyone help me fix this, I appreciate that.
Thanks in advance
I am trying to display a .md2 model over top of the camera preview on my android phone. I don't need to use the accelerometers or anything. If anyone could even just point me in the right direction as to have to set up an opengl overlay that would be fantastic. If you are able to provide code that shows how to enable this that would be even better! It would be greatly appreciated..
I'm not able to provide code until later this week, but you might want to check out a library called min3d, because I believe they already have a parser written for .md2 files. Then I believe that if you use a GLSurfaceView, the background can be set to be transparent, and you can put a view of the camera behind it. Are you trying to get some kind of augmented reality effect? There are android specific libraries for that too, but they're pretty laggy (at least on my Motorola Droid).