Android Studio example how to use vsomeip between two app services from native code.
Based on the original vsomeip example https://github.com/GENIVI/vsomeip/tree/master/examples/hello_world
- Android Studio
- CMake 3.12 (for boost-cmake)
Git submodule projects:
- vsomeip 3.1.20.2: (https://github.com/GENIVI/vsomeip.git).
- boost-cmake: Used CMake adapted boost (https://github.com/Orphis/boost-cmake).
- Clone main git project:
git clone https://github.com/nkh-lab/ndk-vsomeip-hello-world.git
- Clone submodule projects:
git submodule update --init
- Run Android Studio
- Then open ndk-vsomeip-hello-world/vsomeip-hello-world project
- Build and run
- Expected app output in Logcat:
2020-06-05 11:13:06.407 31221-31266/com.example.vsomeiphelloworld I/hello_world_client: Sending: World
2020-06-05 11:13:06.437 31221-31266/com.example.vsomeiphelloworld I/hello_world_client: Received: Hello World