Pushed readme file for Android easy setup service
authorMadan Lanka <lanka.madan@samsung.com>
Mon, 15 Jun 2015 09:47:01 +0000 (05:47 -0400)
committerUze Choi <uzchoi@samsung.com>
Mon, 15 Jun 2015 10:19:00 +0000 (10:19 +0000)
Created a common read me file for easy setup service.
This file will be updated with the build and execution procedure for other platforms in future

Change-Id: I48322510be5868200f5ff02fe92297f02a6871fc
Signed-off-by: Madan Lanka <lanka.madan@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/1270
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/readme.txt

index 674993c..61202ef 100644 (file)
@@ -1 +1,64 @@
-Adding Easy-Setup Primitive Service source files
\ No newline at end of file
+
+Steps to build and deploy Easysetup Mediator in Android platform
+
+1) Compilation
+       0) Prerequisite exports for Android
+               export ANDROID_HOME=<ANDROID_HOME>
+               export ANDROID_NDK=<ANDROID_NDK>
+       a) In the IoTivity root source folder execute
+                scons TARGET_OS=android TARGET_ARCH=armeabi TARGET_TRANSPORT=IP RELEASE=0
+       
+       b) Step (a) will generate cross compiled base libraries and places them in the folder
+               /out/android/armeabi/debug
+               
+       c) Now navigate to the Easysetup NDK folder 
+               <iotivity-root>/service/easy-setup/sdk/android
+               
+       d) Execute NDK-Build with the following command to cross compiled Easysetup JNI .so files
+                ~/madan/android-ndk-r10d/ndk-build
+                
+       e) Step (d) will generate cross compiled Easysetup JNI .so files in the following folder
+               
+               
+               
+2) Execution
+       
+       0) Prerequisite for running the Android application
+               Install Android SDK and ADK in eclipse using the Android SDK manager
+       
+       a) Import following projects to the Eclipse using the "Import->Android->Existing Android Code Into Workspace"
+               - service\easy-setup\sdk\android\EasySetupCore
+               - service\easy-setup\sampleapp\android\EasySetup
+                
+       b) Drag and drop the following .so files in to the EasySetup->libs->armeabi folder
+               - libca-interface.so
+               - libconnectivity_abstraction.so
+               - libeasysetup-jni.so [Easy Setup file]
+               - libESSDK.so [Easy Setup file]
+               - libgnustl_shared.so
+               - liboc_logger.so
+               - liboc.so
+               - libocstack-jni.so
+               - liboctbstack.so
+       c) Run "Easy Setup" as an Android application
+       
+Folder structure
+iotivity/
+└── service
+       └── easy-setup/
+               │── SConscript
+               │── sdk
+               │     └── inc
+               │     └── src
+               │     └── android
+               │     └── arduino
+               │             └──wifi
+               │                     └──inc            
+               │                     └──src            
+               │── sampleapp
+               │     └──android
+               │     └──arduino                
+               │     └──linux
+               └── README - You are reading this.
+
+