Is it possible to change the enforce a particular orientation of screen in a gwt+mgwt application? Lets say I would want the users to always use the application in landscape mode.
It depends: yes as phonegap app and no inside the browser.
If you are running as a web application you dont get any control on the orientation. The browser handles that for you. But if youre running as an application with phonegap you can set the supported orientations inside your app (same as every native app).
With iOS this would be inside the normal configuration of your app. On Android this is inside your android manifest file.
Related
Iam trying to run Android multiwindow sample https://github.com/googlesamples/android-MultiWindowPlayground on Android Automotive N. Inorder to switch app into split screen mode, it is suggested to long-press the recents button. Though the resizableactivity attribute is set true in Android manifest, it doesnot works in split screen mode in Headunit.
Please let me know how can I enable split screen mode in Android N Automotive Headunit?
Hope I understand your question, but fairly sure the point of Android Auto is to provide 'safe' access to some phone features, multi-window kinda defeats that purpose so I'm guessing the force it off in the Android Auto app.
I have a project requirement to create a kiosk based application which will always be in the landscape mode,for which I am making use of a tablet running on 4.2.2.One of the modules has the functionality to make phone calls.For making the calls from my app, I invoke the default android dialer app.However,I notice that even if my device is physically in the landscape mode,at times when the default dialer app is called,it first displays its portrait layout and the quickly switches to the landscape one(which is not visually appealing).Now,since I do not have access to modify the source code of the default dialer app,I was wondering if there is a way that I can specify a system level screen orientation as landscape ?
PS: I have root access for my tablet.
Any help would be appreciated.Many thanks !
There's an app for that: Rotation Locker
You can also add the switch ro.sf.hwrotation 90 in your build.prop file
I have written an application using Adobe Air 3.4 SDK. I have deployed it to my android v4.0.4 device. It works fine (in full screen mode as expected).
Now the application is expected to run in full screen mode automatically before the device shows the native android screen to the user.
How can I do this? Suggestions anyone?
In the AIR native classes, there is a thing called startAtLogin that you can set to true or false :
NativeApplication.nativeApplication.startAtLogin = true;
But I doubt that can be used to override the native android screen and be displayed before it.
I suppose some built-in checks have been made to be sure nothing gets booted before the screen is ready and diplayed.
Still, you can try it :-)
We have an App for a tablet with Android 2.2. This is the only App that should run on this tablet. It starts automatically.
Thats why the user should not have access to other Apps on this tablet, especially not to the settings.
How we can realize this?
You should probably write your application as a Home application. There is an example in the developer docs here:
http://developer.android.com/resources/samples/Home/index.html
Then you'd be able to switch the default Home application for your one.
Is there a way to change the default browser in an android emulator using some code running outside emulator. We want to change the android device default browser programmatic manner.
Is there a way to change the default browser in an android emulator using some code running outside emulator.
That is impossible in two ways.
First, it is impossible for an SDK application to change the default application, other than to make itself not be the default.
Second, it is impossible for an Android device to run an Android application that is not on the Android device ("some code running outside emulator").