View Single Post
Posts: 18 | Thanked: 94 times | Joined on Dec 2012
#1
Hello all devs (and non devs).

I started this ApkEnv support module development thread so that maybe we get more devs working on this.

Original thread: http://talk.maemo.org/showthread.php?t=87496
Web page: http://thp.io/2012/apkenv/

This is what I have learned from studying ApkEnv sources, please correct me if I am wrong.

First little about ApkEnv and these support modules, what are they and why are they needed.

ApkEnv is not Java VM so it can't run programs that are made completely with Java JDK.

Some programs however are made with NDK that allows programmers to develop programs with C language but even these programs need small java code that handles all Android related stuff for example OpenGL, touch screen, network and audio related code.

ApkEnv can run this native C code but it can't run this small Java program what handles all important stuff. This is where support modules come into play.

APKs are basically zip files and Java code that needs to be ported to these modules is inside classes.dex file.
Here is pretty good info how to read this file:
http://stackoverflow.com/questions/1...ava-sourcecode

I have written modules for Angry Birds Space and Fruit Ninja (attached) which both lack sound support and I hope somebody could help with these].

I would like to remind people before they start spamming "[insert APK here] doesn't work" that if there is no support module for APK file it probably doesn't work.

PS. If you want to find out if APK is made with NDK then check if it contains lib/armeabi folder. If folder exists then there is hope that it can be run under ApkEnv and proper module.

Edit: Both Angry Birds and Fruit Ninja got sound support now! (attachments updated) Thanks to thp for support.

From now on I upload my modules to https://github.com/Art-O/apkenv and make pull request to thp git when I think they are ready

Next I start working on my favourite Android & desktop game World of Goo (that one seems much more challenging than AB or FN)


Art-O
Attached Files
File Type: gz module_fruitninja.tar.gz (10.1 KB, 482 views)
File Type: gz module_angrybirds.tar.gz (6.9 KB, 411 views)

Last edited by Art-O; 2012-12-22 at 18:34. Reason: Updated Fruit Ninja module
 

The Following 36 Users Say Thank You to Art-O For This Useful Post: