Intel XDK - orientation problems

Ideas and discussion about publishing and distributing your games

Post » Tue Jul 07, 2015 6:05 pm

help with this...................




The build failed. An error occurred while building the application. Verify your build assets are correct and try again.
You can view the log of the Android build here
Build Log:
The App ID is "cruz.ruddycruz2kyahoo.tf"
The App Name is "tf"
Crosswalk Version: 11.40.277.7
No plugins were found in the intelxdk.config.xml file.
App name updated to [tf]
Updated "minSdkVersion" with "14"
Updated "targetSdkVersion" with "19"
Updated "installLocation" to "auto"
Updated "screenOrientation" to "landscape"
Updated "versionCode" to "60001"
Updated "versionName" to "1"
Added "debuggable" to "false"
Installed ldpi launch icon
Installed mdpi launch icon
Installed hdpi launch icon
Installed xhdpi launch icon
B
33
S
6
G
2
Posts: 13
Reputation: 2,963

Post » Sun Jul 12, 2015 2:51 am

tavi wrote:@Mcreator83 @tomz365 @sagasarma @Vegamon007 @BouncyTrip

I managed to find the way around the XDK orientation problem. I found the solution on StackOverflow.


The plugin is called cordova-yoik-screenorientation and all you need to do is:

Add it as a "third party plugin" in XDK.

Add the following into your index.html head:

<script>
screen.lockOrientation('landscape');
</script>
...you can change landscape to portrait if you want.


The github link for plugin: https://github.com/gbenvenuti/cordova-p ... rientation


thanks I will try it out later. I rebuilt the game in portrait but I will need it fixed for a bigger game so it's a good thing there is a fix for it.
B
9
S
1
Posts: 30
Reputation: 539

Post » Thu Aug 13, 2015 1:03 am

I also have the orientation problem with Intel XDK.
Did you managed to fix your problem ?
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Sun Aug 16, 2015 10:48 pm

Has anyone using Intel XDK been able to build for Android with the screen orientation locked to landscape, which would work on both sides of the device (allowing the device rotate 180 degrees)?

I've tried lots of different methods and cordova extensions, but it seems to be either that there's no rotation lock at all, or the lock is strictly at one side of the landscape only without allowing the screen orientation flipping to the other side. on iOS this is fine, as long as you fix the plist definitions but Android seems a challenge.
B
14
S
3
G
1
Posts: 78
Reputation: 1,037

Post » Thu Aug 27, 2015 11:52 pm

nothing works here, i can't get landscape. I tried everything. even cranberrys plugin....
B
37
S
9
G
8
Posts: 541
Reputation: 8,554

Post » Sat Oct 03, 2015 10:19 pm

nothing worked that i read here and all over the internet...
than i just added in first event
on start of layout
browser:lock orientation portrait
and... voala!
screen is locked
B
26
S
11
G
2
Posts: 669
Reputation: 5,038

Post » Sun Oct 25, 2015 8:10 pm

@irina you are the best. Just what I have been looking for. Now will test on my device.

Happy Game Developing
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Sun Oct 25, 2015 10:52 pm

@volcank Did this work for you? I just tried doing this for landscape and I had no luck.
Thanks.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

Post » Mon Oct 26, 2015 12:07 am

@CDogs1964 yes it worked but for portrait didn't try landscape yet. I built my game with Intel XDK tough and before building I also from inside XDK select full screen and select portrait from the drop down menu.
B
19
S
6
Posts: 179
Reputation: 2,202

Post » Mon Oct 26, 2015 1:27 am

I am also using XDK and chose Full Screen on build settings. I chose Landscape as default within C2 and the first line of the first event within the game is Browser: Lock orientation to Landscape.
B
42
S
16
G
3
Posts: 169
Reputation: 4,383

PreviousNext

Return to Distribution and Publishing

Who is online

Users browsing this forum: No registered users and 2 guests