How to create APK Expansion file?

Discussion and feedback on Construct 2

Post » Tue Dec 13, 2016 8:12 pm

I imagine that someone here with some coding knowledge could whip up a tutorial 'for dummies' explaining step by step how someone without coding knowledge can make an expansion file for their C2 game. It's necessary for larger mobile games, so a tutorial is overdue. My Googling it has only resulted in answers that look to require coding knowledge, such as through use of Android Studio. Which would be okay, if there were to be a tutorial guiding us along the way. Could someone who knows how to do this take some time to write up a tutorial? It would be very popular.
B
13
S
5
G
1
Posts: 54
Reputation: 1,551

Post » Wed Dec 14, 2016 11:23 am

Team EternaL wrote:I imagine that someone here with some coding knowledge could whip up a tutorial 'for dummies' explaining step by step how someone without coding knowledge can make an expansion file for their C2 game. It's necessary for larger mobile games, so a tutorial is overdue. My Googling it has only resulted in answers that look to require coding knowledge, such as through use of Android Studio. Which would be okay, if there were to be a tutorial guiding us along the way. Could someone who knows how to do this take some time to write up a tutorial? It would be very popular.

A tutorial would be really useful...
ImageImageImageImage
B
28
S
9
G
7
Posts: 229
Reputation: 5,518

Post » Mon Dec 19, 2016 8:04 am

@xmnboy I believe you work for Intel and are in contact with the XDK team, I'd like to request a statement about this.
Would it be possible for the XDK team to provide us Construct 2 Dev's a simple tool to create an APK expansion file?

I personally don't know much about the tech behind APK expansions but I assume that it could be possible to store all C2 files
inside the expansion and let the browser runtime itself (which is inside the default APK) load the content from the expansion?

If the mentioned way above isn't possible, we could also do a workaround by having the media and texture files on the expansion and run the game itself as usual over the default APK. C2 is allowing us to set the paths to those 2 folders which contain the majority of game assets, this basically means that we would need some sort of "APK expansion creator" which imports those two folders and provides us the paths to those folders.

Again, those are just speculations and I don't know much about the whole APK expansion process.
ImageImageImage
B
61
S
22
G
78
Posts: 646
Reputation: 44,755

Post » Thu Jan 12, 2017 8:47 pm

@TheRealDannyyy -- sorry for taking so long to reply, I don't check the Construct2 site that frequently. Providing a mechanism to support APK expansion files is outside the scope of the XDK and the types of apps we are supporting. It is not something that will be added to the product. For that sort of a feature I recommend you go directly to using Cordova CLI, where you have much more control over the construction of your APK files.

There is at least one APK expansion file Cordova plugin available (perhaps more) that you might want to experiment with. It likely will not work with our build system, because there appears to be a lot of fixups to your project that will likely fail with our build system, thus Cordova CLI is your best bet.
Intel Corporation
B
13
S
3
Posts: 79
Reputation: 925

Post » Thu Jan 12, 2017 9:33 pm

xmnboy wrote:@TheRealDannyyy -- sorry for taking so long to reply, I don't check the Construct2 site that frequently. Providing a mechanism to support APK expansion files is outside the scope of the XDK and the types of apps we are supporting. It is not something that will be added to the product. For that sort of a feature I recommend you go directly to using Cordova CLI, where you have much more control over the construction of your APK files.

There is at least one APK expansion file Cordova plugin available (perhaps more) that you might want to experiment with. It likely will not work with our build system, because there appears to be a lot of fixups to your project that will likely fail with our build system, thus Cordova CLI is your best bet.

Alright, looks like the community has to find a way to deal with this.
Thanks for taking your time to respond!
ImageImageImage
B
61
S
22
G
78
Posts: 646
Reputation: 44,755

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 8 guests