ndk-vsomeip-hello-world icon indicating copy to clipboard operation
ndk-vsomeip-hello-world copied to clipboard

Android Studio example how to use vsomeip between two app services from native code.

ndk-vsomeip-hello-world

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

Environment

  • Android Studio
  • CMake 3.12 (for boost-cmake)

Dependencies

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).

Project setup

  1. Clone main git project:
git clone https://github.com/nkh-lab/ndk-vsomeip-hello-world.git
  1. Clone submodule projects:
git submodule update --init 

Open project in Android Studio

  1. Run Android Studio
  2. Then open ndk-vsomeip-hello-world/vsomeip-hello-world project
  3. Build and run
  4. 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