AlbertAkefoul's Recent Forum Activity

  • Here is my code to the Supplement to the App.java

    package com.phonegap.gameworld;

    import android.app.Activity;

    import android.os.Bundle;

    import android.webkit.WebView;

    public class App extends Activity {

        npb@Override

        public void onCreate(Bundle savedInstanceState) {

          super.onCreate(savedInstanceState);

        

          WebView webview = new WebView(this);

          webview.loadUrl("file:///android_asset/www/index.html");

          

          setContentView(webview);

        }

    }

  • Hello friends! Everything is almost done loaded in the emulator run "their game" and writes an error

    "the connection to the server was unsuccessful"

    <img src="http://cs302812.userapi.com/u21362907/-7/y_4d9afc68.jpg" border="0" />

    <img src="http://cs302812.userapi.com/u21362907/-7/y_3fce0bc4.jpg" border="0" />

    What do I need to load into the server?

  • I just want my game to make application for ANDROID

    I did everything as they say here: http://wiki.phonegap.com/w/page/30862722/phonegap-android-eclipse-quickstart

    have only exported to PhoneGap

    When exporting to PhoneGap

    <img src="http://www.scirra.com/images/articles/exportforphonegap.png" border="0">

    out

    <img src="http://cs5825.userapi.com/u21362907/-7/y_f5e31033.jpg" border="0">

    I do not understand how to change the project properties?

    Tell me how to make an application under ANDROID?

  • Why is the game does not start with localhost?

    <img src="http://cs5825.userapi.com/u21362907/-7/y_9551e5df.jpg" border="0" />

    But starting with the hosting is excellent.

    Help may be in the code in index.html need to change something?

    Here is the complete code of index.html

    <!DOCTYPE html>

    <html manifest="offline.appcache">

    <head>

        <meta charset="UTF-8" />

    <!-- This ensures the canvas works on IE9+. Don't remove it! -->

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <title>Modi</title>

    <!-- Note: running this exported project from disk may not work exactly like preview, since browsers block some features on the file:// protocol. Once you've uploaded it to a server, it should work OK. -->

        <!-- This outlines the canvas with a black border and makes the page background black. -->

    <style type="text/css">

        canvas { border: 1px solid black; }

        body { background-color: black; color: white; }

    </style>

    </head>

    <body>

    <div id="fb-root"></div>

    <div style="text-align: center;">

    <script>

    // Issue a warning if trying to preview an exported project on disk.

    (function(){

        // Check for running exported on file protocol

        if (window.location.protocol.substr(0, 4) === "file")

        {

          alert("Note: browsers have very strict security limitations on pages viewed from disk. This means exported projects generally don't work when run from disk. Upload your project to a server, or just preview from inside Construct 2, to check it works.");

        }

    })();

    </script>

            <!-- The canvas the project will render to. If you change its ID, don't forget to change the

            ID the runtime looks for in the jQuery ready event (above). -->

        <canvas id="c2canvas" width="640" height="480" oncontextmenu="return false;" onselectstart="return false;">

                <!-- This text is displayed if the visitor's browser does not support HTML5.

                You can change it, but it is a good idea to link to a description of a browser

                and provide some links to download some popular HTML5-compatible browsers. -->

          Your browser does not appear to support HTML5. Try upgrading your browser to the latest version. <a href="http://www.whatbrowser.org">What is a browser?</a>

          <br/><br/><a href="http://www.microsoft.com/windows/internet-explorer/default.aspx">Microsoft Internet Explorer</a><br/>

          <a href="http://www.mozilla.com/firefox/">Mozilla Firefox</a><br/>

          <a href="http://www.google.com/chrome/">Google Chrome</a><br/>

          <a href="http://www.apple.com/safari/download/">Apple Safari</a><br/>

          <a href="http://www.google.com/chromeframe">Google Chrome Frame for Internet Explorer</a><br/>

        </canvas>

            <br />

        

        <!-- SCIRRA LTD LICENSE AGREEMENT

           FREE EDITION USERS ARE NOT ALLOWED TO REMOVE, MODIFY OR HIDE THE FOLLOWING

           LINES OF HTML5 CODE FROM THEIR EXPORTED GAMES. REMOVAL, MODIFICATION OR

           ATTEMPTS TO HIDE THIS MESSAGE WILL BE IN BREACH OF THE FREE EDITION LICENSE

        -->

        <!-- End of Scirra Ltd. free edition limitation -->

        <a href="http://www.scirra.com" target="_blank" style="font-family:Arial;color:DodgerBlue;" title="Create games">Made with Construct 2 ? the HTML5 game maker</a>

    </div>

    <!-- Pages load faster with scripts at the bottom -->

    <!-- Construct 2 exported games require jQuery. To save bandwidth, by default

    this is set to grab it off the Google content delivery network (CDN). Fall back to local if not available. -->

    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

    <script>window.jQuery || document.write("<script src='jquery-1.7.1.min.js'>\x3C/script>")</script>

        <!-- The runtime script. You can rename it, but don't forget to rename the reference here as well.

        This file will have been minified and obfuscated if you enabled "Minify script" during export. -->

    <script src="c2runtime.js"></script>

        <script>

        // Start the Construct 2 project running on window load.

        jQuery(document).ready(function ()

        {

          // Create new runtime using the c2canvas

          cr.createRuntime("c2canvas");

        });

        </script>

    </body>

    </html>

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Just watched your program's even surprised why I have 4 pieces JAVA ....

    Here's a look:

    <img src="http://cs305601.userapi.com/u21362907/-7/y_42550260.jpg" border="0" />

    Now I click on the "JAVA" and the application does not start

    <img src="http://cs305601.userapi.com/u21362907/-7/y_f6568a80.jpg" border="0" />

    What am I doing Ashley?

  • Hi,

    I have a similar problem as soon as the start to export a project get this error:

    <img src="http://cs305601.userapi.com/u21362907/-7/x_68701358.jpg" border="0" />

    Help!

    thanks in advance

  • Hi,

    I have a new version is construct2, as soon as the start to export the project get this error:

    <img src="http://cs305601.userapi.com/u21362907/-7/x_68701358.jpg" border="0" />

    Help!

    thanks in advance

AlbertAkefoul's avatar

AlbertAkefoul

Member since 19 Mar, 2012

None one is following AlbertAkefoul yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies