New Android Export Experiences

Discussion and feedback on Construct 2

Post » Sun Dec 22, 2013 7:53 pm

Ok I've tried building my app a few times changing different things here and there. Once I install the APK, I launch it, get a black screen for about 10 seconds, then an error pops up, reading:

"The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"
Pressing ok made my phone crash the first time, so the other times it happened I have killed the app.
I'll try with a much smaller simpler app and see if I get the same results in a while!

EDIT: I tried building one of the templates in Construct 2 and installed the APK and still get the error above. I also noticed that during the 10 seconds of the black screen, my phone is completely unresponsive.Jase002013-12-22 21:22:53
B
51
S
20
G
10
Posts: 571
Reputation: 9,819

Post » Sun Dec 22, 2013 8:22 pm

[QUOTE=IntelRobert]
Another possibility is to use google's support for expansion files. Ashley's suggestion of the app downloading the assets and relying on caching would be the simplest solution.[/QUOTE] With this wouldn't you need to host your own assets, or would Gplay host them?
B
21
S
8
G
6
Posts: 346
Reputation: 4,891

Post » Sun Dec 22, 2013 8:55 pm

[QUOTE=IntelRobert] This makes the minimal crosswalk app be < 1MB. We were concerned that App Developers would think this is cumbersome and would prefer that the crosswalk runtime be embedded in the App so the end user has a single download. What do you think?[/QUOTE]

I too think Ashley's solution would be the simplest. It's what I would image using things like push updates would require anyway. Making updates for the user seamless, instead of them having to install a new apk or ipa except for maybe an update to the wrapper itself.

And the build works and ran on an HTC Evo. The touch buttons were a tad laggy. But I'm going to see where I can optimize that I haven't already.

Really glad it's working now.
B
29
S
5
G
5
Posts: 39
Reputation: 5,991

Post » Sun Dec 22, 2013 9:03 pm

Having to download game assets after the initial app download is somewhat a common practice among heavier titles, but that means the minimal app size of 20MB is still there.

Asking the consumer to download an extra application after downloading and installing your game is a harder sell in my opinion. I'd rather have an >20MB app.

Honestly 20MB isn't that big of a file size for android games, but it is a shame that small 1MB-2MB projects get that big.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Sun Dec 22, 2013 9:59 pm

@IntelTyler @IntelRobert

will there be another option once The web version is retired?I really would love to continue to use this option for export on my current OS.
Im using Windows Vista for now.


[QUOTE=IntelRobert] @Everyone. Thanks for taking the time to try out crosswalk and XDK and letting us know the good and bad. It really helps us know what we have to do next.

@Astro The build problem was resolved. A logging option was left on and the disk filled up. I did a couple builds and it works fine now.

@RookieDev There is a web based interface to the build system. We are going to retire it in a few months but you can use it for now.

I don't have enough points to post a url so I had to mangle it. Cut/paste and get rid of the X between http: and //

http:X//appcenter.html5tools-software.intel.com/csd/controlpanel.aspx
'start a new app', 'create your own from scratch' 'start with a project bundle' Export from c2 for android. Create a zip file with index.html in top level. Upload that bundle. Click next.You will be in appcenter and select 'build as mobile app' and the 'crosswalk'.

If you want to update the zip file, export from c2 again. Make a new zip. Go to appcenter. 'Update QA' to upload the new bundle. 'Promote' to put it in the production slot. Then build.

This is much easier from XDK so we should find a way for you to use it. Are you on windows XP? What problem do you see?[/QUOTE] RookieDev2013-12-22 22:02:15
GMO FOOD = DEATH
B
23
S
9
G
5
Posts: 567
Reputation: 6,378

Post » Sun Dec 22, 2013 11:45 pm

Here are my personnal test :

Kawaii Puzzle (low spec puzzle for kid)
The fps are great for the 2 export CocoonJs and Intel XDK with Crosswalk.
I've graphic artefect with CocoonJS using the last version with tiled bitmap but it seem to work at all.

So i want to stress them more and export Space Tako Invasion on them :
CocoonJS :
night mode : 21 to 26 fps (depending the number of objects)

day mode : 27 to 29 fps (depending the number of objects)



Intel XDK CrossWalk :
night mode : 31 to 34 fps (depending the number of objects)

day mode : 35 to 41 fps (depending the number of objects)
B
85
S
14
G
6
Posts: 72
Reputation: 7,237

Post » Mon Dec 23, 2013 5:39 am

yes, it's somewhat big for small web apps. The reason is that Crosswalk is full-featured web engine. Packaging with it is >16M.
Maybe we can provide some options to let developers decide whether to use expansion file to reduce the size of installed APK.
B
6
S
1
Posts: 48
Reputation: 545

Post » Mon Dec 23, 2013 5:52 am

[QUOTE=IntelRobert] If you want to test crosswalk, but are blocked by the 25M limit for upload while trying to build:

Start up XDK then click on the 'Debug' tab at the top. Connect your android device to your computer via usb. There is some help information on the screen--you may need to install a driver. Then click the 'rocket' icon and it will launch your app on the device using crosswalk.

The first launch will be slow. After the first time, a project with 51M of assets took 20 seconds to launch on my Nexus 4. Building an APK takes 5+ minutes when you include upload/download time so this is a much faster and easier way to test with crosswalk.

Debug tab also lets you debug your app in Chrome dev tools, profile tab lets you profile the javascript.[/QUOTE] @IntelRobert, using XDK NEW for iOS I'm getting a black screen testing a project with 7mb of assets. And a white screen on the emulator. Any ideas?
B
12
S
3
G
1
Posts: 347
Reputation: 2,866

Post » Mon Dec 23, 2013 6:07 am

@Cipriux [QUOTE=Cipriux] @bscarl88 when installing, first my phone says out of memory, so I had to uninstall some old games...and now when opening the game, I see the C2 logo, but when progress bar is almost at 100% the game closes. tryied this 5 times. Don't know If is my low RAm or the game. I have 400MB empty RAM[/QUOTE]


Hmmm that's odd, it opens on my phone fine, just runs like crap haha
B
35
S
5
Posts: 411
Reputation: 3,406

Post » Mon Dec 23, 2013 2:25 pm

@Jase00 This looks like a crosswalk problem specific to your phone software configuration. Can you file an issue at https:X//crosswalk-project.org/jira/secure/Dashboard.jspa

Remove the X after https: above. I can't post URL's yet.

Mention that you are building with XDK. Give the model for your phone and the OS version. Attach a zip of the output of the exporter for a very simple project. JIRA will create an issue number so it would be good to edit your Scirra forum post to include the JIRA issue number so we know how to track the problem.

[QUOTE=Jase00] Ok I've tried building my app a few times changing different things here and there. Once I install the APK, I launch it, get a black screen for about 10 seconds, then an error pops up, reading:

"The connection to the server was unsuccessful. (file:///android_asset/www/index.html)"
Pressing ok made my phone crash the first time, so the other times it happened I have killed the app.
I'll try with a much smaller simpler app and see if I get the same results in a while!

EDIT: I tried building one of the templates in Construct 2 and installed the APK and still get the error above. I also noticed that during the 10 seconds of the black screen, my phone is completely unresponsive.[/QUOTE]
Intel Corporation
B
15
S
3
Posts: 193
Reputation: 1,552

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests