androidpro's Forum Posts

  • hello how are you , I just made tutorial yesterday to how export to cordova then make an apk file. you can check it here :

    https://www.scirra.com/tutorials/9637/h ... my-own-way

  • > as i said the problem is from canvas + . when i change it to webview+ the problem gone but the performance is very low.

    >

    i have just maded a tutorial for building apk with Cordova CLI, im interestead on know if you encounter the same problem building with Cordova, in case just send me a similare template .capx of your problem and i build the apk for you

    https://www.scirra.com/tutorials/9610/b ... ordova-cli

    thank you very much for the tutorial i will try it <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile"> and sorry for delay

  • I have an ebook that teaches how to deal with this problem, basically the workthroughs he says are:

    You can try changing the layers paralax to 0, 0; make the background image bigger than the window size; give the background a Anchor behavior and adjusting it, or add a layout color.

    Please try those and let me know if it works.

    before i never face that problem. now i get that problem and im sure the problem is from cocoon canvas +

  • as i said the problem is from canvas + . when i change it to webview+ the problem gone but the performance is very low.

  • i resize the resolution to 960.540 , but still a little white space appear in the corner. 1280.720 would fix that ??

  • >

    > > Sorry but I don't use cocoon, i always use cordova+crosswalk

    > >

    > you wrap your game with intel xdk ? i use intel too but the apk exported is too big

    >

    xdk is deprecated, i use Cordova CLI to build android apk.

    anyway, try also changing resolution in 16:9, i think this white band problem could be the NON 16:9 resolution fit-screen, just change all at 960x540, then export and rebuild apk for a quick test

    ok i will try and thank you very much for your help much appreciated

  • Sorry but I don't use cocoon, i always use cordova+crosswalk

    you wrap your game with intel xdk ? i use intel too but the apk exported is too big

  • > the layout size is the same : 960.640. but before i never get that problem. i heard that something wrong in canvas + . because i use canvas + in cocoon.io to build my game

    >

    so.. try without canvas+

    if i use webview or webview+ the game run extra slow this is why im forced to use canvas +

  • the layout size is the same : 960.640. but before i never get that problem. i heard that something wrong in canvas + . because i use canvas + in cocoon.io to build my game

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i just fix the link sorry

  • hi and thank you for reply this is the screenshot of my settings :

  • hello my friends when i build the game with cocoon.io . i got a white space in the corner of my game. i use 960.640 in windows size.

    can someone help me to how fix that problem? and thank you

  • Yes I did use admob plugin and put there my banner ID just like this

    i do the same thing and i installed the 2 plugins and ads still not showing

  • thanks RogerFoxGames but in cocoon.io it not exist this plugin cordova-plugin-ad-admob. it exist just one for android in plugins section. so how to add cordova plugin , any link ?

  • Hello everyone

    I did a simple app to test admob plugin, but it doesn't work. I tried everything, using Intel XDK, PhoneGap,Cocoon, but "On banner ad received" and "On interstitial received" never triggers. After some tests I got an error report using Intel XDK emulator that says

    UNHANDLED EXEC CALL

    There is no handler for the following exec call AdMobPlugin.setUp

    I think this is caused by C2 action "Preload banner ad", maybe is this the problem? I'm expert in C2 and there are no error in the code, and BannerID is correct.

    Can you help me?

    SOLVED:

    I tried adding different plugins, finally I found the correct one!

    Here are the procedure:

    1) In Google AdMob I created a banner and interstitial. I took their ID (app ID is not necessary)

    2) In C2 I've imported AdMob plugin and setted banner and interstitial ID

    3) Exported using cordova

    4)Deleted config.xml

    5)Using cocoon.io, I've uploaded my app in .zip

    6)Added plugin cocoon-plugin-ads-android-admob and cordova-plugin-ad-admob

    (I think the last one is the correct plugin, but I prefer to keep the first too)

    7)Built the app for android and installed in my phone

    hi can you please tell me how to add cordova-plugin-ad-admob to cocoon ? and how to set events of admob plugin in construct2 ? and thank you