Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kneth/androidcalcpi
Playing with C++ for Android
https://github.com/kneth/androidcalcpi
android-studio cpp legacy ndk
Last synced: about 2 months ago
JSON representation
Playing with C++ for Android
- Host: GitHub
- URL: https://github.com/kneth/androidcalcpi
- Owner: kneth
- License: gpl-2.0
- Created: 2015-07-31T12:28:56.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-26T14:46:35.000Z (about 9 years ago)
- Last Synced: 2024-10-12T01:25:06.230Z (2 months ago)
- Topics: android-studio, cpp, legacy, ndk
- Language: C++
- Size: 48.8 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AndroidCalcPi
This is a simple Android project to play with C++ and test Android Studio 1.3 and Gradle 2.5. Moreover, it is part of my [tutorials](http://www.slideshare.net/geisshirt/tips-and-tricks-for-building-high-performance-android-apps-using-native-code) and [talk](http://www.slideshare.net/geisshirt/building-high-performance-android-applications-in-java-and-c?related=1) on how to use C++ in Android.
The following branches exist:
* `master` has all except benchmarking code.
* `initial` is where you begin. It is an empty app (for Android Studio 1.3 and Gradle 2.5) and some C++ code. The C++ code acts as the "legacy" code for the exercises.
* `wrapping` implements the wrapper classes and intermediate C++ code so the "legacy" code can be used in an Android app.
* `reducing-size` adds compiler and linker flags to reduce the sizes of the final `.so` files.
* `exceptions-and-logging` is about rethrowing C++ exceptions as Java exceptions. Furthermore, the introduction of logging through the Android logging mechanism is also found here.
* `posix-threads` shows how to use POSIX threads in Android native code. It requires a larger refactoring in order to get a thread-safe random number generator.
* `non-ndk-libraries` can be used to get you started using some of the libraries on Android devices but not included in NDK.
* `benchmarking` adds a bit of benchmarking. It hasn't been merged into `master` as the runs are too short to give any reliable results.
You are welcome to try out the code and open Github issues.