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.Gitlab-Projekt yellow-rectangle-androidLetzte 3 Commits:2018-03-26 by Tilman Kranz: 849a37f9 Update README.md2018-03-23 by Tilman Kranz: 4eab8b36 reduced minSdkVersion to 152018-03-23 by Tilman Kranz: a414491b more README, less logging
The relevant portions are:
- 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():