portrait

Issues taking picture with Android (Vertical Camera | Portrait)

自古美人都是妖i 提交于 2020-01-21 05:17:26
问题 With the following code shows a preview of the camera vertically and it's works.. BUT!! I get a photo in landscape! :( How I can build it vertically? I've the preview view in vertical, but I can't save the picture vertically. greetings and thanks, Fran ONCLICK public void onClick(View arg0) { camera.takePicture(myShutterCallback, myPictureCallback_RAW, myPictureCallback_JPG); } PREVIEW @Override public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) { if

zxing camera portrait mode and landscape on android

穿精又带淫゛_ 提交于 2020-01-10 03:09:37
问题 I have already integrated zxing library in my application. Now i want that zxing camera will work on both mode landscape as well as on portrait mode. now it is working on one mode only. Can somebody help me out how to do this? 回答1: I used compyutech 's answer, but there were some things missing. So, I'm putting everything required, here. 1. CameraConfigurationManager : inside initFromCameraParameters method : if (context.getResources().getConfiguration().orientation == Configuration

Locking the screen to landscape for only one activity

拈花ヽ惹草 提交于 2020-01-07 02:09:25
问题 I have looked around SO and found how to lock my entire application to Landscape by editing the Manifest file. However, this is not what I want. I want every activity to be locked portrait, except for one, which will be locked to landscape. 回答1: In your manifest file, find your Activity declaration and use the following: <activity android:name=".ActivityName" android:label="@string/app_name" android:screenOrientation="landscape" > </activity> 来源: https://stackoverflow.com/questions/13569052

Locking the screen to landscape for only one activity

ⅰ亾dé卋堺 提交于 2020-01-07 02:09:06
问题 I have looked around SO and found how to lock my entire application to Landscape by editing the Manifest file. However, this is not what I want. I want every activity to be locked portrait, except for one, which will be locked to landscape. 回答1: In your manifest file, find your Activity declaration and use the following: <activity android:name=".ActivityName" android:label="@string/app_name" android:screenOrientation="landscape" > </activity> 来源: https://stackoverflow.com/questions/13569052

Swift sprite kit landscape only forced into portrait

天大地大妈咪最大 提交于 2020-01-06 02:13:53
问题 I have asked this question before but maybe due to my bad explanation unfortunatly I did not get a reply. I am still having the issue with my spritekit game that is in landscape only. When I lock my device or sometimes just switch to another portrait app, and than return to my game it is forced into portrait mode for 1-2 secs. This does not happen with other games and I do not understand what I am doing wrong. I have set orientation to landscape left and right only (in Targets-General),

Android VideoView not playing Portrait Orientation

大憨熊 提交于 2020-01-03 07:08:08
问题 THE PLATFORM: Developing in Eclipse using Android SDK 16. THE PROBLEM: I have a VideoView element that is supposed to fill the entire screen in 480x800 (PORTRAIT ORIENTATION) and it plays fine, but will not orient to portrait. It sticks in landscape mode and the aspect ratio is skewed to fit that way. WHAT I HAVE ATTEMPTED: using android:screenOrientation="portrait" in manifest using android:orientation="vertical" in the container and the VideoView itself using setRequestedOrientation

Android VideoView not playing Portrait Orientation

独自空忆成欢 提交于 2020-01-03 07:07:04
问题 THE PLATFORM: Developing in Eclipse using Android SDK 16. THE PROBLEM: I have a VideoView element that is supposed to fill the entire screen in 480x800 (PORTRAIT ORIENTATION) and it plays fine, but will not orient to portrait. It sticks in landscape mode and the aspect ratio is skewed to fit that way. WHAT I HAVE ATTEMPTED: using android:screenOrientation="portrait" in manifest using android:orientation="vertical" in the container and the VideoView itself using setRequestedOrientation

3 media queries for iphone portrait, landscape and ipad portrait

邮差的信 提交于 2019-12-31 09:46:49
问题 I have tried the different combinations of width & device-width but on the iPhone in landscape this code never turns the background red; I am having problem when I have more than 1 media query. See this JSfiddle example the div background is never green unless you remove the last media query This is what I would like 3 different media queries which target: both smartphones and tablets(portrait only). This will be where I have all my generic styles for responsive layout width: 320px - 479px -

3 media queries for iphone portrait, landscape and ipad portrait

不问归期 提交于 2019-12-31 09:46:10
问题 I have tried the different combinations of width & device-width but on the iPhone in landscape this code never turns the background red; I am having problem when I have more than 1 media query. See this JSfiddle example the div background is never green unless you remove the last media query This is what I would like 3 different media queries which target: both smartphones and tablets(portrait only). This will be where I have all my generic styles for responsive layout width: 320px - 479px -

Programmatically rotate iOS app upside down using objective-c

戏子无情 提交于 2019-12-25 08:38:47
问题 I want to rotate my app upside down portrait using the following code in the ViewController: - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { //return NO; // Return YES for supported orientations return (interfaceOrientation == UIInterfaceOrientationMaskPortraitUpsideDown); } - (UIInterfaceOrientationMask) supportedInterfaceOrientations { return [super supportedInterfaceOrientations] | UIInterfaceOrientationMaskPortraitUpsideDown |