Cross-platform SDK and HTML5 tools for mobile app development
X
 
12 posts / 0 new
Last post
ramya
ramya's picture
Offline
Joined: 23 May 2012
Posts:
Orientation not working

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.

jafo232
jafo232's picture
Offline
Joined: 10 Dec 2012
Posts:
Out of all the threads I read

Out of all the threads I read after searching for information on how to set screen orientation, this one was the most helpful!  Thanks!

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
Hi, Android 4.0 isn't

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:

{syntaxhighlighter brush: cpp;fontsize: 100; first-line: 1; }maScreenSetOrientation(SCREEN_ORIENTATION_PORTRAIT);{/syntaxhighlighter}

 or

{syntaxhighlighter brush: cpp;fontsize: 100; first-line: 1; }maScreenSetOrientation(SCREEN_ORIENTATION_LANDSCAPE);{/syntaxhighlighter}

pranali
pranali's picture
Offline
Joined: 28 Jun 2012
Posts:
can anyone tell me how to

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++ .

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
Hi, FileUpload is being

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.

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
yes thats right, but if

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.

ramya
ramya's picture
Offline
Joined: 23 May 2012
Posts:
Yes Sam. Saw that option from

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???

ramya
ramya's picture
Offline
Joined: 23 May 2012
Posts:
Yeah, done exactly the same.

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.

Sam Pickard
rival's picture
Offline
Mobile Archmage
Joined: 19 Mar 2009
Posts:
Have you tried

Have you tried maScreenSetOrientation(SCREEN_ORIENTATION_DYNAMIC)?

ramya
ramya's picture
Offline
Joined: 23 May 2012
Posts:
Is is atleast possible to

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.

Login or register to post comments