This project is aimed to implement a P2PSP client as an Android application. This project is aimed to create a peer implementation for Android devices.
- Android Studio 2.0+ with NDK bundle.
- Download Android Studio
- Launch Android Studio.
- Open the sample directory.
- Open File/Project Structure...
- Click Download or Select NDK location.
- Click Tools/Android/Sync Project with Gradle Files.
- Click Gradle/p2psp-android/app/build/buildDependents.
This project uses the new Gradle Experimental Android plugin with external lib support.
To compile the Android project we need to link several libraries such as Boost, LibVLC to the jni.
- https://github.com/emileb/Boost-for-Android-Prebuilt/tree/master/boost_1_53_0
- Boost static libraries specific to three ABI's namely
armeabi, armeabi-v7a, x86
.
- We can build the LibVLC for Android by following this AndroidCompile and then add it to the project.
- Builds
libp2psp.so
native shared library - Used 3rd party Boost Static libraries (https://github.com/emileb/Boost-for-Android-Prebuilt/tree/master/boost_1_53_0)
- Builds shared library specific to three ABI's namely
armeabi, armeabi-v7a, x86
.
The key points regarding the build are:
- Inform Android Studio where lib/header is
- Add lib dependency to application >Details are inside projects' build.gradle files
If you've found an error in these samples, please file an issue.
Patches are encouraged, and may be submitted by forking this project.