User Tools

Site Tools


getting_started_iotivity_services_for_android_0_9_1

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
getting_started_iotivity_services_for_android_0_9_1 [2015/10/08 07:23]
Jay Sharma [Pre-requisites]
getting_started_iotivity_services_for_android_0_9_1 [2015/10/08 07:48] (current)
Jay Sharma [Pre-requisites]
Line 301: Line 301:
 ==== Pre-requisites ==== ==== Pre-requisites ====
  
-  - Things Manager ​application ​(Things Manager SDK) is needed. Build it using NDK. \\   Go to the following path: “~/​iotivity/​service/​things-manager/​sdk/​java”,​ and execute the following command to build the libraries (Note: ~PATH stands for path where Android NDK is installed on your machine): **$ ~PATH/​ndk-build** ​+  - Things Manager ​Library Project ​(Things Manager SDK) is needed. Build it using NDK. \\   Go to the following path: “~/​iotivity/​service/​things-manager/​sdk/​java”,​ and execute the following command to build the libraries (Note: ~PATH stands for path where Android NDK is installed on your machine): **$ ~PATH/​ndk-build** ​
   - Import Things Manager application (Things Manager SDK) into eclipse IDE. \\ File -> Import -> Android -> Existing Android code into Workspace -> next -> browse   - Import Things Manager application (Things Manager SDK) into eclipse IDE. \\ File -> Import -> Android -> Existing Android code into Workspace -> next -> browse
        - Enter path for importing: \\ “~/​iotivity/​service/​things-manager/​sdk/​java” ​        - Enter path for importing: \\ “~/​iotivity/​service/​things-manager/​sdk/​java” ​
        - Add Base project jar dependency. \\ Right Click on the project->​ Build Path-> Configure Build Path-> Libraries->​ Add External JARs->​browse the path of the jar file (“~/​iotivity/​android/​android_api/​base/​build/​intermediates/​bundles/​release”) select “classes.jar”->​Order and Export ->select classes.jar->​Ok. \\        - Add Base project jar dependency. \\ Right Click on the project->​ Build Path-> Configure Build Path-> Libraries->​ Add External JARs->​browse the path of the jar file (“~/​iotivity/​android/​android_api/​base/​build/​intermediates/​bundles/​release”) select “classes.jar”->​Order and Export ->select classes.jar->​Ok. \\
-       - Create a '​libs'​ folder in the application. Inside the '​libs'​ folder create an '​armeabi'​ folder. \\ +
-       ​- ​ Copy these libraries to armeabi folder: +
-                  * liboc.so +
-                  * liboctbstack.so +
-                  * libconnectivity_abstraction.so +
-                  * liboc_logger.so +
-                  * libgnustl_shared.so +
-                  * libca-interface.so +
-                  * libocstack-jni.so \\ **Path** for libraries : “~/​iotivity/​android/​android_api/​base/​libs/​armeabi”. \\ +
 3. The sample applications (Sample and con-server) depend on other Linux applications for functionality testing, so build iotivity project for Linux platform. (refer Readme.scons.txt available in iotivity home directory). ​ 3. The sample applications (Sample and con-server) depend on other Linux applications for functionality testing, so build iotivity project for Linux platform. (refer Readme.scons.txt available in iotivity home directory). ​
  
getting_started_iotivity_services_for_android_0_9_1.txt · Last modified: 2015/10/08 07:48 by Jay Sharma