As an addendum to my previous article, there now also is an Android App „YellowRectangle“ that draws a yellow rectangle and terminates on the first touch event. It runs on Android version 4.0.3 (Ice Cream Sandwich MR1) and upward. It is written in Java and C++ and uses the Allegro game development library (http://liballeg.org/).
A complete project for Android Studio can be downloaded from my GIT repository:
The relevant portions are as follows:
- The app implements an activity DrawYellowRectangle, this activity is performed when the app is started:
- The activity loads a native shared object native-lib.so and executes it’s entry point main():