We too, we wrote tons of code inside OFAndroid, ofxAssimpModelLoader and some others. And now upgrading OF from 0.8.0 to current version is a challenge for us hahaha
Anyway, OFAndroidVideoPlayer.java, OFAndroidGestureListener.java, OFAndroidGPS.java, etc… should be good examples to implement your own classes.
Right you are, worked like a charm. Now I have an OFAndroidGPS.java version that is completely disconnected from OFAndroid.java.
The only problem of having addons with a java file is that it requires me to add lines to classpath, and that’s not something that I think that addons user would be inclined to do.
As far as I know, OF doesn’t have any facility to automate that (am I correct?)
Tal
P.S.
@Rancs - that’s why you should extend by inheritance for your project specific code, or submit pull requests for core changes that will benefit the entire community.
I’m not familiar with the architecture in video player or gestures (I may check it out sometime), but OFAndroidGPS is actually not a very good example for a separated add on, since (in it’s current state, before my changes) OFAndroid is the class that contains the entry points from c++.