Android :: Working In Portrait Mode With Camera Preview?

Jun 27, 2009

When do you expect it to get fixed? I am a developer working on http://layar.eu and I had to go through lot of trouble to get the app working in portrait mode with camera preview, using a LOT of rotations. I have managed to get everything rotated to portrait except for the on screen inputmethod which still shows up in landscape. Do you have any suggestions for rotating that?

Android :: Working in Portrait Mode with Camera Preview?


Android :: API Version Compatibility - Portrait Camera Preview

Nov 21, 2010

I'd like my app to run on both Android versions 2.1 and 2.2. In one area of my app, there is a portrait-style camera - the process for producing a portrait camera preview is different (as far as I know) on the two OS versions. Here is how:

2.1:
Camera.Parameters parameters = camera.getParameters();
parameters.set("orientation", "portrait");
camera.setParameters(parameters);

2.2:
camera.setDisplayOrientation(90);
The setDisplayOrientation(int) method became available in API Level 8 (2.2) and, so, cannot be used on 2.1; however, using the 2.1 (Camera.Parameters) method does not rotate the preview and image correctly on 2.2. It seems odd that this incompatibility exists - is there a more correct way to do this that will allow me to target both platforms?

View 1 Replies View Related

Android ::Camera Always Run In Portrait Mode

Aug 5, 2009

I am trying to use Camera to take picture and to video recording but it always runs in portrait mode. Even if I tried to sreenOrientatiton="landscape" it solved screen appearance but when I take photo and capture video they are still saved rotated 90 degrees.

View 5 Replies View Related

Android :: Camera Preview Not Working On G2

Oct 20, 2010

I'm trying to get the camera preview running on my G2.

This is the code I'm testing with, which was taken from the sample code. It is using supplemental code supplied by Wu-Cheng, but its still throwing an error.

CODE:......................

View 14 Replies View Related

Android :: Camera Preview Is Working Properly

Feb 24, 2010

In my Application the camera preview is working properly in both in portrait and in landscape mode. No crashes are occurring, but the users are complaining that the crashes are occurring when they are using the same.

View 1 Replies View Related

Android :: Camera Preview Zoom Not Working

Sep 7, 2010

I've a problem with Camera Preview Zoom. The methods present in Android 2.2, setZoom() is not working to zoom the preview. Is there any another way to do the Zoom in android? I am using the code present in the Android API Demos. Is their any body who has worked on implementing ZoomIn & ZoomOut and got succeed??

View 4 Replies View Related

HTC EVO 4G :: Keyboard Stopped Working In Portrait Mode / Fix This?

Jun 6, 2010

For some reason the entire right side of my keyboard stopped working in portrait mode. i don't know what could have caused this but it really stressing me. Any ideas on what I need to do to fix this?

View 3 Replies View Related

General :: Video Recording Tin Portrait Mode Records In Rotated Landscape Mode?

Mar 26, 2012

there are those of us, who due to whatever reason (helmet cams, preference for posture, etc) want to record videos in portrait mode.

What happens (on my sgs2) is that the video records just fine in whatever resolution I pick... but it records it 90 degrees rotated to the right.

The solution that is usually offered is that "you can rotate it after!" yes... but then you have to CROP part of the image and lower the resolution. 1920 x 1080 recordings end up having to be cropped so that half of the view is cut out , or even more if you are maintaining a real aspect ratio.

The questions about "why not just hold it sideways", are just as pointless as the statement by steve jobs telling iphone4 users that they were holding their phones wrong.

is this something that can be remedied ? or has google decided that people should only record videos when their phones are in landscape mode?

i understand that we cant see landscape resolution in portrait mode; but can't we just have a viewport into the camera, but record in properly oriented landscape mode? so that playback on a computer will show the full resolution, even though we will only see part of it on the phone..

View 1 Replies View Related

General :: Dialer In Kitkat Always In Landscape Mode When Call Is Ongoing - How To Set It In Portrait Mode

Dec 1, 2013

dialer in kitkat is always in landscape mode when call is ongoing....how can we set it in portrait mode

View 1 Replies View Related

General :: Set Portrait Mode As Default Orientation Mode?

Sep 23, 2013

I have a tablet and I want to set the portrait mode as the default orientation mode instead of landscape mode.

View 2 Replies View Related

Android :: Using Navigation In Portrait Mode

Jul 3, 2010

Am I the only one that prefers navigating in portrait as opposed to landscape. It seems that you get more view of the road ahead, rather then the sides. What am I missing, where / why would landscape be preferred?

View 3 Replies View Related

Android :: Way To Have Fullscreen Keyboard In Portrait Mode?

Jan 13, 2010

I want to have this result : https://docs.google.com/a/google.com/File?id=afzfgn3h3x_10dwd35pv4_b but in portrait mode. the EditText take all the screen with the keyboard. How can I do that?

View 3 Replies View Related

Android :: Force Browser Into Portrait Mode

Nov 26, 2009

Is it possible to start the browser activity from my game but force it to be portrait regardless of orientation so that it matches the orientation of my game which is always in portrait regardless.

View 2 Replies View Related

Android :: Portrait / Landscape Mode Supporting

Mar 31, 2009

When we try to implement orientation in AP layer, we can set "android:screenOrientation" parameter in AndroidManifest.xml file or call "setRequestOrientation()" method of Activity class. But if I want to porting android in new HW device, how can I do? Do I need to modify the graphic driver, or just add configuration in program. (Actually I do some experiments but my AP cannot rotate) Besides, can every experts tell me when I set the "android:screenOrientation" parameter, which process will read this configuration, pass to where and which process will do the rotation?

View 2 Replies View Related

Android :: Height Of Device In Portrait Mode?

Dec 3, 2009

Is there always a concept of portrait mode for devices? If so, can we get what the height of the device is in portrait mode? I'm using this: DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); but width and height get swapped depending on orientation of the G1.

View 8 Replies View Related

Android :: Height Of Screen In Portrait Mode Only?

Mar 31, 2010

How can I get the height of the device for portrait mode? I have to create a bitmap (which is zoomable) and I just want to get a rough idea what the tallest height should be. getResources().getDisplayMetrics().heightPixels; does the above return the height, in portrait mode only? I'm not binding my UI to this absolute value, it's just a rough fit.

View 1 Replies View Related

Android :: Phone Application To Run In Portrait Mode?

Sep 16, 2010

I want my android application to be only run in portrait mode? How to do that?

View 2 Replies View Related

Android :: How To Switch Camera To Portrait?

Feb 9, 2010

I'm developing an application that render preview frames from the camera to a Surface View. I've noticed there's no way in the Camera API to set the orientation to portrait, so I'm forced to make my view landscape. Does anyone know how to tell the camera to deliver preview frames in portrait?

View 5 Replies View Related

Android :: Force Application Widget In Portrait Mode?

Jul 5, 2010

I want to force App Widget in portrait mode, as we force our activity in portrait mode by adding this attribute in Menifest file android:screenOrientation = "portrait". is there any way to force App Widget in portrait mode?

View 5 Replies View Related

Android :: Put TextView In Same Position In Landscape / Portrait Mode

Oct 1, 2009

I am facing a problem when i put a text view on screen in landscape mode it position is fine but when i switch to portrait mode it position is remain fix it not change according to screen resolution.

View 2 Replies View Related

Android :: ADW Launcher - Moving Bar To Bottom In Portrait Mode

Sep 6, 2010

Does anyone know how to move the bar (I don't know what its called) from the right hand side, to the bottom in portrait mode? The one that is at the bottom in desktop mode. (The one that you press to bring up the applications).

View 1 Replies View Related

Android :: 2.1 Camera Preview Error

Aug 28, 2010

I have a problem with using the camera of an Android 2.1 phone (HTC Desire), maybe you can help me.
After calling camera.open() DDMS in Eclipse shows the following errors:

CODE:............

Test view in the emulator works fine, but on my phone only a popup is shown where I only can close the application.

View 2 Replies View Related

Android :: Cannot Get Camera Preview Example To Work

Oct 28, 2009

I upgraded to the 2.0 SDK yesterday. Don't know if that has anything to do with it. I can't get the Camera Preview example from the API Demos to work. I get the same error in both my emulator and on my G1:
E/AndroidRuntime( 4758): java.lang.RuntimeException: Fail to connect to camera service.

View 4 Replies View Related

Android :: Possible To Camera Capture Without A Preview?

Jun 30, 2010

Is it possible to capture an image without showing the camera preview?, i have a requirement that i should be able to capture the image from a thread or from a service, without disturbing the foreground application, where i do not want to show the camera preview, but still i want to capture the image in background and store it in the device. So is it possible to do using the Android 2.2 SDK version?

View 3 Replies View Related

Android :: How To Get A Camera Preview In Phone

Jun 25, 2009

Anybody know about the camera Api in android.when i used this Api it displayed a black and white grids and a squre moving above it.Anyone know how to get a real time camera preview please help me with some code.

View 2 Replies View Related

Android :: Camera Capture Without Preview In 2.2

Aug 30, 2010

I have a requirement to Capture the image without showing the Preview.. And i want to do it in the Background as a Service. Is it possible to do that?

View 2 Replies View Related

Android :: How To Put Graphics On Top Of My Camera Preview

Sep 10, 2010

I see a couple of threads on this topic, but none of them seem to answer the question, so, I'm giving it another go...

Very simple idea... I want to some portion of the screen to preview (and shoot) the camera and the other portions of the screen to add my own graphical elements (buttons, colorful frame around the camera preview, etc).

The example that comes with Android fills the screen. The obvious solution (that doesn't seem to be working) is to use my own SurfaceView (rather than the one they do in the example) and have it sitting in my XML. The code (beneath) doesn't crash and reports that it's firing up the camera... it just never renders on the screen.

I have no idea what I'm doing incorrectly. My guess is that it has something to do with the display thread never having the urge to redraw anything after it renders the initial screen, but I even tried adding a button and initiating the camera to render on the surface view upon button click, but that has not provoked it any further.
(most of this code is pulled directly out of the Android sample code, so, I'm sure it's correct. I'm just doing something wrong in how I pull my View in after the fact, I think).

CODE:........................

View 1 Replies View Related

HTC Hero :: Camera Not Working - Message The Application Camera Process Com.android.camera Has Stopped Unexpectedly Please Try Again

Dec 6, 2009

My 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 Related

Android :: NullPointer Exception - Switching From Portrait To Landscape Mode

Feb 11, 2009

I have written a small example which displays the photos from the server. Its working fine when the device is in one of the mode (landscape of potrait). But if I switch to landscape to potrait or potrait to landscape while downloading the photos from the server, I am getting NullPointerException, showing with androidRunTimeException.

I am using LinearLayout -> ImageView
I am using threads to download the images.

View 4 Replies View Related

Android :: UI Window In Camera Preview Application

Nov 27, 2009

Let's say in my example I am working with SurfaceView for my CameraSurfaceView. I have a few questions, hope you can help me.

1. When this SurfaceView gets created (I assume via final CameraSurfaceView cameraView = new CameraSurfaceView (getApplicationContext()), this will result in a call createSurface() in SurfaceFlinger with format, width and height. Am I correct?
Is this SurfaceView also my UI window if I want to draw anything? I thought if I call setType(PUSH_BUFFER) on this surface, I won't be able to do any drawing on this surface.

2. How does the application pass these information like format, width and height to SurfaceFlinger for the allocation? Is it by using .setFormat, .setFixedSize?

3. How do they methods .setFormat, .setFixedSize related to the surfaceHolder.surfaceChanged() callback?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved