Android :: How To Get Angle Of View Of Camera?
Feb 4, 2010Is there a possibility to query the hardware specs of the camera. I'm especially interested in the AOV "Angle of View"[ http://en.wikipedia.org/wiki/Angle_of_view].
View 2 RepliesIs there a possibility to query the hardware specs of the camera. I'm especially interested in the AOV "Angle of View"[ http://en.wikipedia.org/wiki/Angle_of_view].
View 2 RepliesI'm curious how the camera view angle determined using getHorizontalViewAngle? Is it predefined within the API, or is it provided by the hardware?
View 3 Replies View RelatedI've just been fooling with the front facing camera and I noticed something that maybe some of you can explain more thoroughly. When I have the camera held vertically, the alignment is great, but when I turn the phone horizontally the image has a funny angle. It is almost like the lens is angled to the right, which would mean that it is slightly angled down when held vertically. Am I just getting goofed up by the "mirror image" issue? This isn't a problem, but it does make self portraits while being horizontally held pretty weird.
View 6 Replies View RelatedWhen an overlay is put on a MapView, the shadow suggest that its at an angle and not flat on the map.
I have been creating scaled bitmaps to overlay on a mapview, but i am either geting the scale wrong or the overlay is being painted at a slight angle, sitting up a bit, rather then being flat to the map.
Does anyone know if this is true? and if so, is there a way to stop it painting at an angle or do you know the angle so i can compensate for it when creating the bitmapped overlay?
I am trying to add a bit of a narration in the form of augmented reality to the application I am building. In essence the user will be looking through his/her handset to a location X and I want an MP3 file or WAV or whatever format to play while the camera view finder is up (like the augmented reality apps except instead of overlaying images and widgets I need to overlay audio)
Anyone know a way to do this?
I'm working on an Android program for my research. It needs to find out the angle while user using my mobile phone. The angle here is like a rotation angle of entire mobile phone, not the widgets in layout.
I've tried keyword "angle" on
http://developer.android.com/reference/packages.html
And I found a method "onSensorChanged" under public interface SensorListener. But the description there is too hard to me to understand. Is it the function I want?
How to move ball on particular angle in android canvas?
View 1 Replies View RelatedI'm currently developing a simple 2D game for Android. I have a stationary object that's situated in the center of the screen and I'm trying to get that object to rotate and point to the area on the screen that the user touches. I have the constant coordinates that represent the center of the screen and I can get the coordinates of the point that the user taps on. I'm using the formula outlined in this forum: How to get angle between two points?
-It says as follows "If you want the the angle between the line defined by these two points and the horizontal axis:
double angle = atan2(y2 - y1, x2 - x1) * 180 / PI;".
-I implemented this, but I think the fact the I'm working in screen coordinates is causing a miscalculation, since the Y-coordinate is reversed. I'm not sure if this is the right way to go about it, any other thoughts or suggestions are appreciated.
Is there a method of obtaining the field of view for a phones camera (horizontal and vertical)?
View 2 Replies View RelatedI have a simple program that draws the preview of the Camera into a SurfaceView. What I'm trying to do is using the onPreviewFrame method, which is invoked each time a new frame is drawn into the SurfaceView, in order to execute the invalidate method which is supposed to invoke the onDraw method. In fact, the onDraw method is being invoked, but nothing there is being printed (I guess the camera preview is overwriting the text I'm trying to draw).
This is a simplify version of the SurfaceView subclass I have:
public class Superficie extends SurfaceView implements SurfaceHolder.Callback {
SurfaceHolder mHolder; public Camera camera; Superficie(Context context) { super(context);
mHolder = getHolder(); mHolder.addCallback(this); mHolder.setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
} public void surfaceCreated(final SurfaceHolder holder) { camera = Camera.open();
try { camera.setPreviewDisplay(holder); camera.setPreviewCallback(new PreviewCallback() {
public void onPreviewFrame(byte[] data, Camera arg1) { invalidar();
} } ); } catch (IOException e) {} } public void invalidar(){ invalidate(); }
public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {
Camera.Parameters parameters = camera.getParameters(); parameters.setPreviewSize(w, h);
camera.setParameters(parameters); camera.startPreview(); }
@Override public void draw(Canvas canvas) { super.draw(canvas);
// nothing gets drawn :( Paint p = new Paint(Color.RED);
canvas.drawText("PREVIEW", canvas.getWidth() / 2, canvas.getHeight() / 2, p);
} }
I have a SurfaceView that is being used to draw custom animations and I would like to overlay them onto a live-feed from the phone's camera. Currently, the SurfaceView that contains the animations has a white- background, but if I were to overlay them onto the phone's camera feed, they would have to be transparent. The camera and animation drawing cannot be done on the same SurfaceView. Is it possible to make a SurfaceView transparent? What is the best course to pursue the use of multiple views? My end goal is to essentially overlay the contents of another SurfaceView onto the Camera SurfaceView.
View 2 Replies View RelatedAnyone know of a charger where the wire is at a right angle to the plug? In almost every case, there is too much tension on the cord when plugged in to keep it standing on the kickstand. Also, in the car, a right-angled charger would be useful for me. I found a right-angle auxiliary input for the stereo, and that helps some. Previously, I had one big plug coming straight out of the bottom, and another coming straight out of the top.
View 10 Replies View RelatedI am in the UK and see that this item:-
Amazon.com: Startech.com 3FT Right Angle Micro USB Cable Is A Fully Rated USB Cable with The: Electronics is currently unavailable in Amazon UK. I need the micro right-angle plug.
I have a SurfaceView that is being used to draw images, and I would like to overlay them onto a live-feed from the phone's camera. Currently, the SurfaceView that contains the images have a white-background, but if I were to overlay them onto the phone's camera feed, they would have to be transparent. The camera and animation drawing cannot be done on the same SurfaceView. What is the best course to pursue the use of multiple views that involve managing the camera and drawing images? Is it possible to make a SurfaceView transparent?
View 4 Replies View RelatedI just got the Macro/Wide Angle lens I ordered online for my Evo last night, so here are some shots from today.
View 18 Replies View RelatedI want to change the viewing angle of my screen cos it looks better whrn tilted. how do I do that?
View 2 Replies View RelatedIs there or will there be, a mod that will allow us to use the camera in portrait instead of landscape mode? I Would love the option.
View 2 Replies View RelatedI would like to create an Android app that can view the stream from an IP camera. Basically all it will need is a settings screen where you can set the IP address for the stream that you'd like to view and another screen that shows the camera stream. I won't need to worry about any pan/tilt/zoom functionality.
View 5 Replies View RelatedI would like to create an Android app that can view the stream from an IP camera. Basically all it will need is a settings screen where you can set the IP address for the stream that you'd like to view and another screen that shows the camera stream. I won't need to worry about any pan/tilt/zoom functionality.
View 3 Replies View RelatedWhen using Google Maps Navigation, how do you get it so as you're following the directions the maps is viewed at and angle so you can see further ahead on the map. Also how do you have the screen/map turn as the car turns?
Right now it's just looking down and with no angle/tilt on the arrow and the orientation stays "north up" all the time. It used to do this.
Anyone having trouble with the Layar Camera View mode? When I first installed this about 3 month ago, I was able to use it. Several updates (any maybe Froyo) later, It wont go into camera mode.I've uninstalled and re-installed, still no change.Any advice? The camera itself seems to function fine; Im able to take pictures, etc.
View 1 Replies View RelatedHas anyone tried using the EVO 4G lens on their Galaxy S?
Macro Lens Attachment
It was mentioned that the diameter of the lens is 13 mm, which is about the diagonal length of the little square on our Galaxy S/Vibrant. (Captivate has a round lens, so you guys should be able to glue on the metal ring easily) So we might have a bit of problem attaching the metal ring that comes with the macro lens. I really do want a wide angle lens for my phone though. I can think of plenty of use for it. (I know about the DVD lens DIY, but I don't happen to have a old DVD-rom lying around at the moment.)
Well my Droid quit charging, the only time I can get it to charge is when I hold the charger into my phone at a certain angle, same thing I gotta do when I flash sbf with rsd lite onto my Droid. I'm gonna miss this thing. But hopefully, with warranty, I'll have a brand new one in my pocket by this evening. What's funny about it is, I'm planning on getting the Droid x when it comes out. Lol, so I guess I'll have a basically brand new Droid to get rid of when the time comes. Sent from my Droid using Tapatalk
View 21 Replies View RelatedIs there any way we can get this app or feature? rooted or not, i think that's a freakin awesome feature!
View 7 Replies View RelatedNot sure what happened exactly but the camera view is now a pink screen with no visibility. Phone is not modded so I doubt it's something I did. Is this the result of water damage maybe? Everything else is working fine and the water indicator hasn't changed.
View 4 Replies View RelatedJust got my update; but there dosn't seem to be a way into the photo album without opening the camera first. I'm I missing something?
View 4 Replies View Relatedwell a couple of questions actually. So first is it possible to only view pictures taken by the camera when I press the review button in the camera app? for example, not only do the pictures I take come up but also pictures of wallpapers and other saved images located in different folders show up. I also wanted to know if it was possible to have the take picture button be moved to the hold button.
View 1 Replies View RelatedMy camera stopped working. When I click my camera application I get the message "The application camera (process com.android.camera) has stopped unexpectedly. Please try again". It's just a blank screen?
View 3 Replies View RelatedI have a droid raxr maxx with android 4.1.2
Recently I did a bunch of updates and started using google now. My phone performance has been significantly degraded as a result.
My most pressing issue is that after taking a photo, when I go to view it, it shows as normal brightness for 1 second and then gets very dark. This happens for every image as I scroll through them individually. It appears that I now have some sort of editing option or maybe google photos or picassa has hijacked my viewer. When I click on the gallery app this dimming issue does no occur. I am unable to view photos from the camera after taking them.
I am trying to set up a ViewFlipper that changes a SlidingDrawers content each time a button is pressed. So far every view I set up worked fine, but now I am trying to create a ListView (including single_choice_mode) within a child view of the ViewFlipper, but my attempt only let to a NullPointerException. As I only discovered ViewFlipper today, I am not yet familiar with it and may not have understood it completely. if someone could give me a hand and help me find out what I have done wrong, that would be great. Here is what I have done:
The code for the onClick event of the ImageButtons:
public void onClick(View v){
if (v == btnExposure){
mFlipper.setDisplayedChild(0); }
else if (v == btnProperties){
mFlipper.setDisplayedChild(1);}
else if (v == btnSpecialEffects){
mFlipper.setDisplayedChild(2);.............