Hi, You can find some sample android application which you could use interface of the Connectivity Abstraction directly. That sample application is located in the "/iotivity/resource/csdk/connectivity/samples/android?.
I?m sure that that sample application provide way to use all the interfaces that Connectivity Abstraction Layer provides. I hope you could find some way out from that sample application. :) Thank you. Jay. > 2015. 7. 10., ?? 12:22, Yu-Hsin Hung <hungys at hotmail.com> ??: > > Hi, > > Thanks for the reply. > > By the way, I?m curious about if the current OC-related Android API contains > Connectivity Abstraction implementation? Because BT/BLE adapter have been in > the code-base for a long time, I?m not sure if they work at this time, or > still under development? > > Best Regard, > > === > Yu-Hsin Hung, > Electrical Engineering and Computer Science Undergraduate Honors Program, > National Chiao-Tung Universiry, Hsinchu 300, Taiwan > (Phone) +886911012113 / +16262412272 > (Email) hungys at hotmail.com <mailto:hungys at hotmail.com> > (Website) http://hungys.logdown.com/ <http://hungys.logdown.com/> > === > > ? 2015?7?9? ? 23:17:16, Junghyun Oh (jhvics1 at gmail.com <mailto:jhvics1 at > gmail.com>) ?: > >> Hi, >> >> You?ll need to wait till the API for the Android Platform gets ready to use. >> Bindings between different module inside stack need to be done. >> >> To my experience, only wifi works on the Android for now(I didn?t tried the >> BT/BLE yet). >> I will share my experience when I found some tips to share. :) >> >> Thank you. >> Jay. >> >> >>> 2015. 7. 8., ?? 12:36, Hung Yu-Hsin <hungys at hotmail.com <mailto:hungys >>> at hotmail.com>> ??: >>> >>> Hi, >>> >>> Thanks for the tips. I try to clone the latest code base from GitHub, turn >>> on the Wi-Fi and now the very simple sample client/server just work! >>> >>> However, I was assigned to do some research on the sample of connectivity >>> and find out if Bluetooth in connectivity module can work on Android (any >>> information?), and I still got stuck when building the sample app located >>> at "connectivity\samples\android\sample_service". >>> >>> The Android Studio pointed out that it cannot find some C header file such >>> as cainterface.h, I solved it by manually copying those header files into >>> project directory, but there is still another error says: "Error:(1127) >>> undefined reference to `__android_log_print'". I followed the suggestion >>> found on Google by modifying Android.mk but it still not work :( >>> >>> Do you have experience on building those sample apps? >>> >>> Thank you. >>> >>> >>> >>> Date: Tue, 7 Jul 2015 21:35:15 +0900 >>> Subject: Re: [dev] Fail to build/run sample app for Android >>> From: jhvics1 at gmail.com <mailto:jhvics1 at gmail.com> >>> To: hungys at hotmail.com <mailto:hungys at hotmail.com> >>> >>> Hi, >>> It seems that iotivity stack failed to get the local ip address. >>> I only see the ip address received from the 3G/4G network. >>> If you did turn on the wifi and checked that your phone received the ip >>> addredd from the local ap sucessfully, >>> I recommend you to download the recent codes from the main branch. >>> There was an bug report related to this issue & patch has merged into the >>> main branch. >>> Patch for the 0.9.1 release maybe applied soon, however, if you want to see >>> its working now, then download the recent code from the main branch. >>> I hope my comment is helpful for your work. :) >>> Thank you. >>> Jay. >>> 2015. 7. 7. ?? 6:55? <hungys at hotmail.com <mailto:hungys at >>> hotmail.com>>?? ??: >>> Hi, >>> My phone is LG Nexus 5 with Android 5.1.1 , so I think it's not the actual >>> reason. >>> Did I miss any step? Anyone has concrete steps to run the sample app? >>> Thank you! >>> Sent by Outlook <http://taps.io/outlookmobile> for Android >>> >>> >>> >>> On Tue, Jul 7, 2015 at 2:50 AM -0700, "???" <jihun.ha at samsung.com >>> <mailto:jihun.ha at samsung.com>> wrote: >>> >>> Hi. >>> >>> It might be Android version issue for your Android phone. It would work >>> well if you use equal or higher than 5.0 Android version. >>> >>> BR, Jihun Ha >>> >>> ------- Original Message ------- >>> Sender : Hung Yu-Hsin<hungys at hotmail.com <mailto:hungys at hotmail.com>> >>> Date : 2015-07-07 18:28 (GMT+09:00) >>> Title : [dev] Fail to build/run sample app for Android >>> >>> Hi all devs, >>> >>> Recently I tried to build and run the sample application based on Android >>> phone, but the app kept crashed when launched although I followed the >>> instructions provided in 0.9.1 package. The following are my steps to >>> build, please help me check if I missed any steps, thank you. >>> >>> 1. Build and generate aar for Android >>> 2. Import sample project (iotivity-0.9.1\android\examples) into Android >>> Studio >>> 3. Add module to import aar package >>> 4. Add dependency of aar for all sample projects >>> 5. Make and run the app >>> >>> The app crashed when launched, and here is the logcat information: >>> http://codepad.org/LEdAuM16 <http://codepad.org/LEdAuM16> >>> >>> Moreover, I also tried some other sample app such as the one in >>> csdk/connectivity, and the one in notification manager, but all not work >>> for me. The former project cannot be built and said some C source files not >>> found, and the latter project crashed when launched with error message that >>> could not find libNotificationManager.so. >>> >>> Hope anyone ever succeed to build and run the sample app can help me with >>> these issues. >>> >>> >>> >>> Best Regard >>> >>> ?????. ??? ??. >>> >>> Best Regards, >>> >>> Jihun Ha (???/???, Ph.D.) >>> IoT, IoTivity, OIC | IoT Solution Lab >>> Software R&D Center | Samsung Electronics Co., Ltd >>> Mobile +82 10 2533 7947 >>> jihun.ha at samsung <http://samsung.com/>. <http://samsung.com/>com >>> <http://samsung.com/> | jhha85 at gmail.com <http://gmail.com/> >>> >>> >>> >>> _______________________________________________ >>> iotivity-dev mailing list >>> iotivity-dev at lists.iotivity.org <mailto:iotivity-dev at >>> lists.iotivity.org> >>> https://lists.iotivity.org/mailman/listinfo/iotivity-dev >>> <https://lists.iotivity.org/mailman/listinfo/iotivity-dev> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.iotivity.org/pipermail/iotivity-dev/attachments/20150710/2a466097/attachment.html>
