AndroidManifest running on BlackBerry Q10 - android

I'm currently trying to run an Android application on a BlackBerry Q10. The application forces itself into landscape mode, but Q10 does not support it.
I've already tried changing the AndroidManifest.xml file (changing landscape mode to portrait mode), the splash screen runs perfectly in portrait mode, the rest won't load (screen turns black) because it still forces itself into landscape mode.
Can someone help me with this?
Regards

Related

Android: Is it possible to launch an application in portrait mode in landscape screen

Let say I have an application designed to open other applications just like a apps screen on android phones. I wanted to keep the device in landscape. At the same time, if other applications designed to be working in a portrait mode, I wanted to show as Portrait in a landscape screen rather than stretch the application to fit within the landscape screen.
This is the screenshot as an example:
The red shape is the application running in portrait.
The black shape is the screen of the device in landscape.
At the moment, my application will load the portrait app in full screen mode which the red shape will be fill the whole screen.
P.S. The device I am using can be rooted.
My launcher at the moment can load the application and cause the application to rotate into portrait on a Portrait screen.
Spending days of finding. The solution is to root the device and calling wm size 300x800 or any number as a su privilege in code.
The way to root the emulator to test can be found in here:
https://android.stackexchange.com/questions/148841/attempt-to-root-avd-running-android-4-4-5-1-is-failing
Use the appropriate API Level as stated in the answer. Otherwise it may not work.
The way to call the su command :
https://github.com/neoimale/android-screen-mock/blob/master/ScreenMock/src/com/dianping/screenmock/MainActivity.java

how keep screen in landscape mode after locking and unlocking the device?

I made a game with Adobe AIR and ActionScript 3 for Android devices.
My problem is with landscape mode. Everything is fine as long as the device get lock screen.
When you open the screen and return to the game, it has changed from landscape to portrait mode.
I fixed this with:
stage.addEventListener(Event.ACTIVATE,Activate);
into Activate function: stage.setAspectRatio(StageAspectRatio.LANDSCAPE);
into Activate function: stage.displayState = StageDisplayState.FULL_SCREEN;
portrait problem is fixed but FULL SCREEN is with android titlebar... How can I fix it?

How to run android apps in landscape mode and set preffered sizes in bluestacks emulator

I use bluestacks as the emulator for debuging and testing android apps with eclipse. But the problem is that I cannot run apps in portrait mode in bluestacks. All the apps run just in landscape mode even I "changed app size" in settings to both "tablet" view and "default" view. (I am worried that my bluestacks version-beta version- has only those two modes and the "phone" view and "Large phone" view is missing- what is the reason for it? Does original versions have more views?)
However once when I changed the "LinkedIn" app view to "default", it was displayed in portrait mode on the emulator, but the whole emulator had rotated 90 degrees, so that was no use..! Please help me. I want bluestacks in Portrait !!!
in the system tray, right click on blue stacks icon
in the menu, select third option "Rotate Portrait Apps"
select enable.
next time ONLY PORTRAIT APP works in portrait mode..
Try the game DOTS to test
Look for the Bluestack icon in the system tray.
Right click on the Icon and you will get a menu, hover the mouse on the "Rotate Portrait App" and you can select the following options as per your requirement.
a. Automatic - Selected By Default - It will rotate the app player in portrait mode for portrait apps.
b. Disabled - It will force the portrait apps to work in landscape mode.
c. Enabled - It will force the portrait apps to work in portrait mode only.
To force the emulator to run activity in portrait mood, you have to define the attribute android:screenOrientation="portrait" in manifest file.
<activity
android:name=".MainActivity"
android:screenOrientation="portrait">
</activity>
After doing this, the particular activity runs on portrait mood.
The important thing is, YOU CAN'T ROTATE BLUESTACK EMULATOR JUST AS THE DEFAULT EMULATOR
The best alternative I found was to use "Youwave Android" instead of Bluestacks as an emulator. Youwave is provided the facility to change the orientation easily( but it configuring it is bit tricky and difficult).
I have the same problem here. I tried to change the screen orientation of the android launcher in bluestacks as well as its main settings. You might have to work with your coding to program its screen orientation. This link might help you as well. Force "portrait" orientation mode

Is it possible to rotate the home screen in the Eclipse Android emulator?

I'm working on an application that will appear on the home screen that I've been testing on my phone in debug mode. However, none of the five phones I have will switch the home screen into portrait mode, making it impossible to test my app in portrait mode. I know that ctrl+F11 will rotate the emulator between portrait and landscape modes. However, much like my physical phones the emulator, when rotated to landscape, simply displays everything sidewise at a 90 degree angle.
Is there a way that the emulator can be setup to allow a landscape home screen? If not, how does one test an application that requires that short of buying one of the few phones that support it?
you can press Numpad 7 to rotate the emulator

Is it possible to set the orientation of the lock screen to landscape in Nexus 7?

I want the home screen and the lock screen to be in the landscape mode. I used this app and able to make the home screen to stay in landscape mode but the lock screen is still in the portrait mode. I would like to know how this app changing the orientation of the home screen and is it possible to change the orientation of lock screen to landscape without installing some other third party lock screen.
I am only looking for the solution that works on Nexus 7.
Google has released a new version for Nexus 7 Android 4.1.2 which supports both home screen and the lock screen in the landscape orientation. Please update your software..

Categories

Resources