openframeworks/openFrameworks — pull request #2742 by falcon4ever (2013-12-21 20:52:31+00:00)
Title: Android assets unzipping fix

This pullrequest fixes a bug that prevents the assets from being unzipped on Android.

When the app is launched for the first time, OF will unzip the assets to the data folder.

The assets zip file is automatically created by the Makefile and it uses the application name (in lowercase). For example: The assets from the app androidGuiExample are stored in androidimageexampleresources.zip.

However, in OFAndroid.java there is a bug which causes the assets to never be unzipped. The application package name isn't converted to lowercase.

Currently the value of app_name is "/androidGuiExampleresources.zip" instead of "/androidimageexampleresources.zip". This will cause the check on line 240 to fail and prevent the assets from being extracted.