Questions tagged [setorientation]

11 questions
16
votes
2 answers

use of setOrientation method on a LinearList object

The setOrientation method of LinearLayout will not accept the argument VERTICAL, contrary to the following from the android reference public void setOrientation (int orientation) Since: API Level 1 Should the layout be a column or a row. Related XML…
peter gottlieb
  • 441
  • 2
  • 5
  • 9
3
votes
1 answer

Force iPhone Orientation

I'm making an iPad app and I need to force the orientation to portrait to several parts of the app. I used the undocumented "setOrientation" API and the app was rejected. Is there a documented way to do this?
user288225
  • 129
  • 1
  • 6
2
votes
0 answers

Set ORIENTATION_LANDSCAPE not working Android

@Override public void onConfigurationChanged(Configuration _newConfig) { if (_newConfig.orientation == Configuration.ORIENTATION_LANDSCAPE) { Toast toast = Toast.makeText(this, "test orientation_landscape", …
Sumit M Asok
  • 2,950
  • 7
  • 29
  • 38
2
votes
3 answers

Any way to silence the UIDevice setOrientation warning?

Anyone have a simple way to silence the undocumented UIDevice setOrientation warning? I found this piece of code that silences the undocumented UIPickerView setSoundsEnabled warning.
Epsilon Prime
  • 4,576
  • 5
  • 31
  • 34
2
votes
3 answers

Some devices ignore string resource in Manifest, Parse Error

Trying to set orientation in manifest file, using a string qualifier android:screenOrientation="@string/orientation" Works on an 4.0 asus tablet, but fails on both a 2.1 wildfire and 4.1 Galaxy S. The problem is infact linking to a resource, If…
McP
  • 813
  • 1
  • 8
  • 16
1
vote
3 answers

setOrientation problem

I have a really strange orientation issue. I have a sequence of view controllers under a navigation controller. One of them can take any orientation. When I'm leaving the orientation I have to use setOrientation. The funny thing is the rotation…
1
vote
1 answer

Check if setOrientation() is supported?

I'm working on an app which records video. It's mostly complete but i'm having a strange issue with an older Samsung Galaxy S1 (australian model) running 2.3.3 (API 10). When I try setting orientation via mMediaRecorder.setOrientationHint(90); it…
1
vote
0 answers

QDataWidgetMapper not working correctly with QSqlTableModel in PyQt when setOrientation is Vertical

I have a strange problem. The following code works perfectly if I only map two widgets to the first two rows of a SQLITE table ("simpletable"). The widgets are filled at startup and the table is correctly updated when I edit the widgets and click…
LozzerJP
  • 856
  • 1
  • 8
  • 23
0
votes
1 answer

how to adjust the view to land scape mode when application launches in landscape mode

i have a split view in ipad and its working fine when i launches it in poprtrait but is showing in portrait views in landscape also... how to automatically adjust the views in land scape mode when app first launches....
Linux world
  • 3,750
  • 11
  • 44
  • 59
0
votes
1 answer

Set listener orientation using Web Audio API

I've been trying to find more information about setting the listener orientation using Web Audio API. I've checked the api documentation but I'm not completely clear on how it should be used. …
0
votes
2 answers

About using setOrientation in iOS sdk 6.1

I am working on a project based on phonegap iOS. And we load web site pages and local html pages in the same webview. When load some page ,the view will be portrait ,and some of these pages are landscape,the others will support both landscape and…