Android :: Obtaining Field Of View Of Camera
May 14, 2009Is there a method of obtaining the field of view for a phones camera (horizontal and vertical)?

Is there a method of obtaining the field of view for a phones camera (horizontal and vertical)?
I have successed regarding storing of Custom field in Contact database, i also viewed my data through LogCat by printing it using "Cursor". Can we view our Custom field from Main Contacts Application?
View 2 Replies View Relatedi have problem to get event of list view field when i am adding checkbox in listview. my problem is to get the status of check box form every row of the list view, either it is check or not, according to that i have to do operation.
View 3 Replies View RelatedIs 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 Replies View RelatedI 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 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 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 RelatedI 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 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 RelatedI was hoping someone could give me instructions to obtain the *exact *source code for the current SDK. What I have so far is as discussed here; http://androidforums.com/android-developers/1045-source-code-android- By using commands such as; repo init -u git://android . git . kernel .org/platform/manifest.git -b android-sdk-1.5_r3 jar cvf ../android-src.jar -C core/java . etc. my issue is that the source is still inconsistent, some extra methods are available and some are not. For example, I want to make a progress bar with two sliders (To select a range) but the version of Progress bar I have; http:// android .git.kernel.org/?=platform/frameworks /base.git;a=blob ;.http://android .git.kernel .org/?p=platform/ frameworks /base.git;a=blob;> I cannot mimic (as an initial implementation), despite using the same package and extending View I do not have access to 'mMinWidth' for example. In addition the progress bar uses methods of the class StateList Drawable which are not available in this SDK (e.g. getStateSet(int i)). It's obvious that there's an inconsistency between the source I have and that which was compiled into the android SDK but I don't know why given my GIT repo commands. Can someone link to the version of ProgressBar which was shipped with android-sdk-1.5_r3? Has anyone managed to get the branch which maps directly to this release? This might well be due my inexperience with Git, please let me know if anyone has this set up correctly and I will try again. I seem, in all honesty, to have the head revision still.
View 6 Replies View RelatedObject getThisObjName= new Object();
I'd like to get the name of an object reference.
Is this possible via reflection in Android?
I'm trying to develop a little game, with 2D Graphics. I want my "gaming board" to be at a specific position on my screen, so that I can display in-game informations above and below the box. But since there is beginning to be a lot of Android phones out there, I was thinking about getting "dynamic" values so that I can adapt my font size to every device.
My game is not in full screen (but it could be, it's no big deal), but in a window with no title bar.
I'm using an extension of the default SurfaceView class, implementing SurfaceHolder.Callback. I tried writing the following method :
CODE:................
But the values returned are zeroes.
(even if it means changing display strategy) ?
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 RelatedI am trying to decode and obtain all frames in a video stream, each of which would be processed by a native signal processing engine and re-encoded back to a MPEG4/MP4 file. I noticed that there was a getFrameAt() function in earlier versions of SDK but its not available in v 1.6 on which I am working. As I am fairly new to Android, I would like to know from more experienced people around here as to how I can extract video frames into a buffer for processing.
View 2 Replies View RelatedI want to obtain the index of the selected item in a spinner.
I am aware of the method getSelectedItem() which returns the item selected (which might be a String). But i want the index of the selected item.
Something equivalent to the setSelection(index) to set the selected item.
Of course I can get the selected item and compare it against the array of items to obtain the index, but I hope there is a better way of doing this.
How can I get/calculate current process CPU usage? ActivityManager provides method that returns a list of all active processes (list of RunningAppProcessInfo), but that class doesn't provide any CPU usage information.
View 10 Replies View RelatedIs there any way to programmatically retrieve data that reports on application usage as shown in the Spare Parts application? I know what calls need to be made, but it seems that they all use internal APIs...is this true?
View 2 Replies View RelatedI can't find a tutorial online that gives me the step by step process on how to generate a suitable key using the keytool in the JDK.
This: http://developer.android.com/guide/publishing/app-signing.html
Talks about it and gives commands, but it doesn't actually say where and in what folder to key in the commands. I am sure I am missing something easy here, but could anyone guide me to where I need to start with this?
I have following code:
CODE:...........
Code is working but here goes my problem: when I call it from main activity in this way:
CODE:........
Then i can see 10 times result of 'doing sth else!!!' and when loop is over i can see then result from activity. So sensor activity waits for some reason and then when main activity has nothing to do, sensors are doing their job.
of course I have well implemented: onActivityResult(int requestCode, int resultCode, Intent intent)
I want to read sensord data directly, not using listeners, is it possible?
Now that SENSOR_ORIENTATION is deprecated, what's the best practice for obtaining compass reading? The old way was so simple.
View 1 Replies View RelatedI had to factory reset my router and now when i try to connect my phone to the wifi all i get is "Obtaining IP address".
View 9 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 RelatedWhen I try to connect to 4g it says there is a network available but stays stuck on the 'obtaining ip adress' screen. I am located in Orlando which is one of the upcoming cities for 4g. Does this mean that the antenna is there but not yet strong enough or what?
View 13 Replies View RelatedI am right outside Chicago and have yet to be able to connect to 4G. I seems like the Evo is starting to connect to 4G, but then just sits with the message of "Obtaining IP address from Sprint". I have left it in this state for 30 mins, and nothing happens. Does anyone know if this is a fault of the phone, or maybe a lack of coverage?
View 23 Replies View Related