Phonegap and Android FullScreen issue

0 favourites
  • 1 posts
  • Hi!

    I was using C2 since a while and yesterday acquired a personal licence (yayy :D)

    im working on a basic game that needs to be integrated with facebook, so i use phonegap/cordova plugins and integrate with C2, everithings works fine BUT the game doens't show in fullscreen:

    <img src="https://dl.dropboxusercontent.com/u/26259893/device-2014-02-13-120112.png" border="0" />

    Things i tried:

    x) see if the default cordova file works in full screen: yes, the default cordova seems ok and the ondevice events and other things works

    x) test the facebook plugins with the default cordova project: yes, it's works

    x) export from C2 as phonegap project, edit the html to change phonegap.js to cordova.js

    x) import the files from C2 exported as Phonegap with Windows Size W:720,H:1280 and Fullscreen method: Letterbox Scale, tried to change the unbounding scrolled to yes in all the layouts, edit the html tring to manually set W,H on canvas div, etc. but the result is not showing in full screen the game.

    x) tried editing res/xml/config.xml adding <preference name="Fullscreen" value="true" />, with no luck

    x) tried edditin Activity.java adding getWindow().setFlags(

                   WindowManager.LayoutParams.FLAG_FULLSCREEN,

                   WindowManager.LayoutParams.FLAG_FULLSCREEN |

                   WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN) , with no luck

    After almos 12 hours of looking arounf and testing i decided to post here, i read there isn't any support for phonegap excluding phonegapbuild but i need to build manually becouse i need to use the facebook plugins from cordova.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)