APK resource loading should use correct and supported Android C++ APIs
APK resource loading should use correct and supported Android C++ APIs
Refactor #1435 [Closed]
- Status changed from New to Resolved
- % Done changed from 0 to 100
Committed in https://github.com/cocos2d/cocos2d-x/pull/2983
Status: | Closed | |
---|---|---|
Start date: | 2012-08-20 | |
Priority: | Normal | |
Due date: | ||
Assignee: | folecr | |
% Done: | 100% |
|
Category: | android, linux | |
Target version: | - |
Currently resource loading from APK is slow and uses custom unzip code.
Instead this should use Android APIs for accessing resources
Advantages :
* Since Android mounts the APK as a Linux filesystem the resource access is much faster.
* Also the code will be much cleaner than the current CCFileUtils code.
For an example of using these APIs please refer to :
https://github.com/folecr/jsplayer-android/blob/master/jni/jsbindings/JNI\_spidermonkey\_bindings.cpp\#L70