Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / resource / csdk / connectivity / build / android / README.txt
1 Compiling Interface APIs FOR Android:
2 ===================================
3 •Preconditons :
4 •Supported version : 5.0 ( Lollipop )
5 •Required NDK version : android-ndk-r10d ( https://developer.android.com/tools/sdk/ndk/index.html )
6
7 Building CA Library for android :
8
9 Run the SCons as mentioned in connectivity/build/How_To_Build.txt
10
11 Building CA Samples for Android :
12
13 Run the SCons as mentioned in connectivity/build/How_To_Build.txt
14 Edit connectivity/SConscript to build the APK
15
16 uncomment the below line to build the sample :
17 env.SConscript('./samples/' + target_os + '/casample/SConscript')
18
19 Note : If this is enabled before building the SO files, Build will fail.
20 Ensure to disable the script whenever not required
21
22 Installing the APK :
23
24 Run the following command :
25
26 $(ADB_HOME)/adb install resource/csdk/connectivity/samples/android/casample/sampleService/build/outputs/apk/sampleService-debug.apk