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.
Project information not readable.The relevant portions are:
- The app implements an activity DrawYellowRectangle, this activity is performed when the app is started:
app/src/main/java/com/tksls/yellowrectangle/DrawYellowRectangle.java - The activity loads a native shared object native-lib.so and executes it’s entry point main():
app/src/main/cpp/native-lib.cpp