How to integrate Samsung Gear Steps in android Application? - android

I want to integrate Samsung Gear device for steps in my application, also jawbone Steps and misfit Steps. I've looked at several things, like the Samsung Gear Site, but found nothing that works for me.

For connection and data transfer between mobile android device and Samsung Gear device , Accessory Protocol is defined. So, the option available here is using Accessory SDK for Android mobile and Tizen wearable.
Tizen provides HumanActivityMonitor for 3rd party developers to retrieve Pedometer step count data.
I have developed a sample app in Tizen platform for reading pedometer step count data in gear and send the data to Consumer Android mobile app while the mobile and wearable is connected through Samsung Gear Manager. Its just a customization over the sample apps available on the sites reffered.
I am sharing the code of the tizen web app along with the installer(.wgt) file. If you are not interested in tizen development right now, you may install the app directly to the Samsung gear using the wgt file.
I am also sharing the code of the android app along with the installer(.apk) file. You may try a sample transmission between the devices and do your code on android platform as necessary. I have tested the apps on my devices and they are working good, though some data inconsistency occurs.
Zip file link:
Android consumer app (apk)
Android consumer app (code)
Tizen provider app (wgt)
Tizen provider app (code)
https://drive.google.com/file/d/0B6KEP_6UcxrATllCWTlmeUh1M28/view?usp=sharing
Human activity monitor API
Human Activity Monitor Guide
Accessory SDK
Please read the Accessory guide and HumanActivityMonitor guide for details implementation, you would find simple explanation there.

Related

Garmin devices data reading via BLE using native android/iOS app

My requirement is to communicate with any of the Garmin device(which has BLE support) with my native android app. I have already developed an android app which can connect with Wahoo Tickers (using their android sdk)and users can directly read data from ticker (no need to install their official app).
So far my research, Garmin have Connect IQ SDK which has a mandatory requirement of installing Garmin Connectâ„¢ Mobile app.
Is it possible to connect/pair with the Garmin devices using Android/iOS Core
Bluetooth API (without even using their sdk and app)?
Unfortunately I don't have any Garmin device yet. After this research I will purchase one for real testing.
Any link or answer will be helpful. Thanks.

How to get raw data(Heart Rate etc) from samsung gear s3 in Android

I want to buy Samsung Gear S3 for development.
I want to use raw data that Gear S3 has.
I searched many sites, but I couldn't find how to get raw data from Gear S3 in Android using BLE. Any help please?
The topic Seems vast. I haven't seen some example code to fetch data directly from hardware layer sensor of another device of another platform. I know You can transfer the data in application layer using common BLE protocol. In Tizen, you can chose your suitable platform Native (C/C++) or Web (js/HTML/CSS)
You can start from checking out the Tizen Native Sensor Guide, It discusses how to fetch sensor data from wearable device.
To get example on establishing Bluetooth LE connection with device, Tizen Native BLE guide would be helpful I guess. Android Bluetooth LE Guide covers sample for android part.
I passed sensor data from tizen wearable device to android, and that was using Samsung Accessory SDK. You can see the response here.
How to integrate Samsung Gear Steps in android Application?
Useful links I would consider:
Tizen Web Sensor guide
Tizen Web Human Activity Guide
Tizen Sensor API for wearable Native
Tizen Web Bluetooth API

Tizen Wearable background app

I am wondering if it is possible to run an tizen wearable app in background. I need to run an app in background. I am using several sensors and I need to save these data continuously.
another thing Can we get the sensor in Samsung Gear S2 data such as Heart Rate directly from an android app directly without any widget on the Gear S2.
I appreciate any help or suggestion.
Thanks,
I'm also new on this and I'm starting with Samsung Gear S2.
When I read your post, I thought I read somewhere that Gear S2 would only run web app, yet, I opened the Tizen IDE, used a sample native app, and installed it an ran on Gear S2, so, I would say that you probably can do it. I would just explore the native sample apps for start, you'll have to develop in c/c++ and as you might know, you'll need to instal the Tizen IDE and the Samsung Extension SDK (http://developer.samsung.com/technical-doc/view.do?v=T000000248)
hope it helps.
It wasn't possible in the first Tizen version that supported wearable (2.2) but became possible later (2.3) when native and hybrid apps were added to the wearable profile.
Not sure how running Android apps on Tizen is really implemented, but I'd expect the chances of Anrdoid apps getting access to device information (sensor and other) is fairly unlikely, as those come through Tizen-specific APIs with also Tizen-specific privilege requirements - the mapping would be complex, but who knows, someone may have managed it. You don't need a widget for that though, the same device information API (and more) is available through native apps.
Yes it is possible to create wearable background app but only with Tizen 2.3 & above and only in Native app versions not in Web apps.
If you want to build app in web version then u can write your service in native and UI in web app and make the app as hybrid app.
Follow the guide in link below to pack a hybrid app:
Tizen Hybrid App Packaging guide

Is it possible to run an app for device in Android Wear(Moto 360)?

I am trying to develop an app for a device in android wear. But when I give command to open the app, it only opens in the device.
Is it possible to run an app for device in Android Wear(Moto 360)?
I never tried this before, only heard it from Google developers via youtube. I hope you find this usfull.
Does your app really support Android Wear ? You have to optimize you app to run on Android Wear.
How to install wearable apps:
https://developer.android.com/training/wearables/apps/packaging.html
How to developer wearable apps:
https://www.youtube.com/watch?v=jbSwhmquRb0
Check this out:
https://www.android.com/wear/check/
Official Google docs about wear designing:
https://developer.android.com/distribute/essentials/quality/wear.html

android app with Google analytics on blackerry 10 devices

I have an android app with Google-analytics integrated. Recently, i ported it for Blackberry10 devices and is currently there on both Playstore and Blackberry world. Now, how do i know from the analytics reports about the blackberry devices running my app. In the analytics report,for devices it shows a row in devices an "Not Set". I did not make any changes for porting my app to blackberry except the mandatory changes in the manifest.
Can anyone please give some suggestions.
The following would allow you to verify inside your app to see whether it's a BlackBerry or another Android device running your app (taken from BB Developer site):
java.lang.System.getProperty("os.name").equals("qnx")
Unfortunately I am not sure what properties Google Analytics uses for its device information.

Categories

Resources