XDK Crosswalk for ANDROID screen landscape (ALMOST SOLVED)

Discussion and feedback on Construct 2

Post » Thu Jun 19, 2014 9:07 pm

I wonder how do I change the option in CROSSWALK FOR ANDROID, to start the application with the screen landscape mode?

Att

Rony Sueliton
Last edited by Rony Sueliton on Wed Jun 25, 2014 12:00 pm, edited 2 times in total.
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Thu Jun 19, 2014 9:49 pm

some kind of same question i was about to add on this forum and glad you have asked similar one....I have also made my app in "ANY" orientation mode in thought it will automatically change its orientation based on user selected orientation either landscape or portrait ...but when i test it then it shows me only portrait then i selected explicitly the landscape mode but i still see potrait ...
B
9
S
2
Posts: 108
Reputation: 1,010

Post » Fri Jun 20, 2014 2:40 am

Thanks for the reply, unfortunately I was unable to run my application in landscape. The application only works in landscape only when the user changes in your mobile system rotation, if this does not happen the app only works in portrait mode.

Thanks for the reply @farhanx, thank you.

If anyone can help more, I'm grateful.

Att
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Sat Jun 21, 2014 3:55 pm

Rony Sueliton wrote:Thanks for the reply, unfortunately I was unable to run my application in landscape. The application only works in landscape only when the user changes in your mobile system rotation, if this does not happen the app only works in portrait mode.

Thanks for the reply @farhanx, thank you.

If anyone can help more, I'm grateful.

Att


Are you testing your app using APP Browser for android??? Because i just tested my application using CooconJS and using that it works fine in landscape mode through its CocoonJS Preview APP. But when i use crosswalk exported code and testing using intel APP Browser in IPad then i am unable to see lanscape mode....
B
9
S
2
Posts: 108
Reputation: 1,010

Post » Sat Jun 21, 2014 10:47 pm

@farhanx, what I have to do to make my application (made in Construct 2) is open by default in landscape in android? Do you have any tutorial teaching how to do?

thank you
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Sun Jun 22, 2014 11:00 am

Select the project property for the construct2 then go in orientation and select as "landscape" ...in full screen browser I have selected Scale Inner and my window size is 1152X648.

For android:
------------------
I have followed the crosswalk export which is given by scirra and then update it on the XDK intel project ... but suppose if you export the code into crosswalk and then you build the app using intel cloud service ...after that it will provide you two types of apps ARM and x86 just try the one that works for your android ... install the apk in your android.

Using above way i am able to see my application starts only in landscape mode and works fine perfectly.... (Remember i am not using APP Browser here to test my app)


But when i use the same code for ipad , i had to test it with APP Browser of Intel XDK....using that i see only potrait mode and it does not work with landscape...now i dont know how to test the real app by deploying it on my ipad maybe the issue is because of APP Browser which is not allowing to see the app in landscape mode...

so my question is how you are viewing your APP??? by installing the apk on your android or by APP Browser of XDK?
B
9
S
2
Posts: 108
Reputation: 1,010

Post » Mon Jun 23, 2014 1:13 am

I will look more calmly tomorrow and post if it worked properly.

Thanks once again! @farhanx
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Wed Jun 25, 2014 11:57 am

I am exporting my file in android with landscape screen, and using the XDK to create the file. Apk, but the file is displayed in portait, so I can change the screen to landscape, rotate the screen to accept the android screen game landscape.

I would like to solve this @farhanx, thanks for your reply.

Att
B
11
S
3
G
1
Posts: 105
Reputation: 1,135

Post » Thu Jun 26, 2014 10:48 am

intel.xdk.device.setRotateOrientation("any"); use this in the device ready function of xdk ,

https://forums.html5dev-software.intel. ... =28&t=6550 check this forum
B
9
S
2
Posts: 108
Reputation: 1,010


Return to Construct 2 General

Who is online

Users browsing this forum: Google [Bot], LaDestitute and 9 guests