Imported Upstream version 1.0.0
[platform/upstream/iotivity.git] / resource / csdk / connectivity / build / android / README.txt
index 10fb9a3..819b828 100644 (file)
@@ -1,17 +1,26 @@
 Compiling Interface APIs FOR Android:
 ===================================
 •Preconditons :
-       Please download the following
-       1) tinydlts library and keep at $(CA_HOME)/lib/tinydtls
 •Supported version : 5.0 ( Lollipop )
 •Required NDK version : android-ndk-r10d ( https://developer.android.com/tools/sdk/ndk/index.html )
-• Modify Makefile ( connectivity/build/android/Makefile )
-    $ cd ${CA_HOME}/connectivity/build/android
-    $ vi Makefile
-  #  Change the NDK_PATH
-    NDK_PATH = ${your_ndk_path}
- Build : $(CA_HOME)/build/android/Makefile
-    $ cd ${CA_HOME}/connectivity/build/android
-    $ ndk-build clean; ndk-build
 
+Building CA Library for android :
 
+Run the SCons as mentioned in connectivity/build/How_To_Build.txt
+
+Building CA Samples for Android :
+
+Run the SCons as mentioned in connectivity/build/How_To_Build.txt
+Edit connectivity/SConscript to build the APK
+
+uncomment the below line to build the sample :
+env.SConscript('./samples/' + target_os + '/casample/SConscript')
+
+Note : If this is enabled before building the SO files, Build will fail.
+Ensure to disable the script whenever not required
+
+Installing the APK :
+
+Run the following command :
+
+$(ADB_HOME)/adb install resource/csdk/connectivity/samples/android/casample/sampleService/build/outputs/apk/sampleService-debug.apk