openframeworks/openFrameworks — pull request #922 by falcon4ever (2012-02-19 23:30:24+00:00)
Title: Windows compatibility patches and External storage location fixes.

As requested in https://github.com/openframeworks/openFrameworks/pull/794 I've branched openframeworks:develop into my own branch and applied the fixes required to build openFrameworks for Android with MinGW on the windows platform.

The instructions on how to compile are still valid (except for the part of patching):
http://www.multigesture.net/articles/how-to-setup-openframeworks-for-android-on-windows/

Note 1: You will need to run:
C:\Development\android-sdk\tools\android.bat update project --target android-8 --path C:\openFrameworks\addons\ofxAndroid\ofAndroidLib

This updates the project files for ofAndroidLib project. I didn't included those because those are user specific (they contain the path to the sdk)

Note 2: d3ddf8e1
I only added this commit in order to make the examples build properly. Someone still needs to fix the proper implementation.

Note 3: 7a9cf0ba
While working on NodeBeat, we found out that not all devices are using /mnt/sdcard as their external storage location. In some cases the sdcard is located somewhere else ("Environment.getExternalStorageDirectory()" doesnt always return the correct location). This commit fixes this problem by checking several locations as reported on multiple Stackoverflow threads. More info about this issue can be found in the commit description.