I tried to enable ORIENTATION option on applications built using MoSynch. Project -> Properties -> MoSync Project -> Application Permission -> Enabled Orientation option. Still we could not see that orientation working for us on our mobile. I have enabled Auto rotate on our Android mobile as well.
Orientation not working
Is is atleast possible to enable orientation or auto rotate on android based mobiles. I tested with few examples from Mosynch. None of them has orientation working properly. Pl reply ASAP with any available option.
Have you tried maScreenSetOrientation(SCREEN_ORIENTATION_DYNAMIC)?
Yes Sam. Saw that option from one of the posts, and it worked :). We built our application in javascript using MoSynch. So I have been searching for the javascript equivalent function. It seems all the MoSync SDK available in C++ is not completely available in Javascript. Is it???
yes thats right, but if you've created an HTML5 application, then there is still Moblet and a main.cpp file. You can add that line into the Moblet constructor.
Yeah, done exactly the same. Thanks for your immediate response. Just because of that gap in SDK, we had to switch from Mosynch SDK to JQuery Mobile to design UI screens and widgets. Are there any plans of enhancing Javascript API and we look forward for more complex widgets like FileUpload as well.
FileTransfer is also not working. Recently one of my colleague Santosh posted comment about it.
Hi, FileUpload is being worked on, and I think it would be very easy to get the orientation as part of a standard JavaScript API. Do you want a new template project with that in to work from?
JQueryMobile and MoSync are complimentary, not choices. You can wrap your JQM app in MoSync for installation as an app.
can anyone tell me how to change screen orientation between multiple screen
I have a 5 screen(pages) in my app i want 1st page in portrait mode , 2nd and 3rd page in landscape mode and remaining in portrait mode .
target :- i am using android 4.0,nativeui c++ .
Hi, Android 4.0 isn't currently a supported platform, but we're working on it! This doesn't mean it won't work, only that it might not.
The command is maScreenSetOrientation:
maScreenSetOrientation(SCREEN_ORIENTATION_PORTRAIT);
or
maScreenSetOrientation(SCREEN_ORIENTATION_LANDSCAPE);
Out of all the threads I read after searching for information on how to set screen orientation, this one was the most helpful! Thanks!