[Q&A] Samsung Gear Fit SDK Available - Samsung Gear Fit

Q&A for Samsung Gear Fit SDK Available
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for Samsung Gear Fit SDK Available. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!

Help with causing vibration
zwegnet said:
Since i work only with Android Studio only thing i can make is to send you the proyect with a working code for Android Studio and the imported library.
Click to expand...
Click to collapse
zwegnet said:
Since i work only with Android Studio only thing i can make is to send you the proyect with a working code for Android Studio and the imported library.
Click to expand...
Click to collapse
I can't find anything in the samsung CUP documentation provided in your cup library download you gave us , or in the official documentation about how to add vibration as a property to the alert, or notification, or how to "officially" use the android CUP stuff to cause say, a custom alarm.
Say if I wanted to create a customizable alarm app that is compatible with CUP and the gear fit for instance, and I want to send a vibration (type) of notification to the gear fit which causes it to vibrate for a long period of time..
(without stopping) until say a menu item is pressed on the fit.
How would I do that?
Is such a thing possible for third party developers? Please help me.
THanks.

raw sensors from samsung gear fit
is it possible to get raw 3D accelerometer and gyroscope signals from samsung gear fit ?
if so how ?

Any possibility to add vertical aka portrait mode?
Dear zwegnet,
First of all thank you so much for your effort to enable Gear Fit development by providing CUP SDK.
It seems 1.0 version of SDK was developed when portrait mode was not available on Gear Fit as it was added in some of FW updates. Thus, ScupDialog seems not to have any method to turn the picture or get current screen orientation.
Of course, maybe protocol itself does not have the command for this, but I expect there can be some way embedded into the protocol.
Is there any chance to investigate that and make new version of CUP SDK with screen orientation feature detection/change enabled?

Problem with App Connect
Hello,
First of all thanks for that API, but I got one problem with it. When I use my gear fit app connect to run application it's doesn't provide any information that the application has been launched with the gear fit, it would be better if I could create a Listener or something like that because now when I use app connect it's run my application on phone and I don't know who started running the application, user on the phone or on the gear fit, if it goes from gear fit I would like to create Dialog on it, but when it's from phone I would like to only resume application, but didn't show anything on the clock, so use method onResume is not possible.
If you know how to solve this problem I would be very grateful.

How to run the app.
Hi,
I have made the app as per your given example. I have s3 (android version ) and gear fit. I have connected my gear fit with android.
After installing the apk in my phone, when I open it , it is throwing error "unforthunately fitapp has stopped".
Do i need some type of settings in my gear fit or s3?

Trouble with Gear Fit CUP SDK Example
I grabbed the example App "CUP_SDK_SAMSUNGINTERNAL.zip" from here
http://forum.xda-developers.com/gear-fit/development/samsung-gear-fit-sdk-available-t2872803
When I open the example in Android Studio as an Android Studio project it creates a Gradle App is that what it is supposed to do? If so is there a way to run an Android app like that? There are no android packages visible.

how start the apps in gear fit manager?
Once created the app in eclipse and installed the apk in the phone, how to start it in gear fit? just connect to gear fit and start the app?
Thanks for the sdk!!!

CUP SDK Samsung Gear Fit
On the Gear Fit, Is there a way to listen broadcasts associated with the GEAR FIT power button. I would like to tie an event to multiple button presses just like the emergency messaging "SAFETY ASSISTANCE Send help messages"?

Hi,
would it be possible to get the raw accelerometer data from the gear fit whit that?
Thanks,
mac
Click to expand...
Click to collapse
Hi
No, it's not posible. Samsung CUP is only for creating user interface of Gear Fit Apps.
At this time only Samsung apps (S-Health, Fitness, ..?) have access to device sensors.

Getting IllegalStateException
Hi there,
I came across this Thread and would like to try writing an app for my gear fit. But when I use the sample Code in the Documentation, the only thing i get is an IllegalStateException: Scup is not initialized
Code:
04-01 15:00:52.748 29498-29498/de.chrosey.gearfitone E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: de.chrosey.gearfitone, PID: 29498
java.lang.IllegalStateException: Scup is not initialized
at com.samsung.android.sdk.cup.ScupDialog.<init>(Unknown Source)
at de.chrosey.gearfitone.cup.HelloCupDialog.<init>(HelloCupDialog.java:15)
at de.chrosey.gearfitone.MainActivity$1.onItemClick(MainActivity.java:39)
...
I tried using the suggested
Code:
<uses-permission android:name="com.samsung.android.providers.context.permission.WRITE_USE_APP_FEATURE_SURVEY" />
but it didn't help.
I am testing on s4 lollipop stock Rom.
Can Somebody help me?

Lollipop compatibility
Is there any compatibility with Android 5.0 and newest version of Gear Fit Manager? Because i've got this error: java.net.BindException: cannot bind service and don't know what to do
Thanks

Execute App in Gear Fit disconnected of mobile
Hi,
i want to have a App in my Gear Fit when i dont have with me my mobilephone. This is possible? I need save some information in the Gear Fit and send tu my Mobilephone App this information.
Any idea?
Thanks,
David.

Help with sensors in gear fit CUP
Hi everybody!
I have just installed Android Studio and I tried to make a wearable application using CUP's library.
Thanks to some guides I attempted it, but I have no idea about how I can collect data from Gear Fit's sensors, especially the heart rate.
Thanks!!

It is not possible to direct access to sensor data. The only way to get that information is through S Health service.

Related

WANTED: Developer for OS assistance on MTK6589 rugged device

Hi folks, just want to say before I start, i'm not a developer, i'm a marketing person for a few phone companies.
I work with a company who are currently purchasing an MTK6589 based device called the Defender from China.
It's running Android 4.2.2.
Tasks Required:
Re-mapping of SOS and PTT buttons
Some of the app partners looking to use the handset want to map buttons so that they can use the handset with their apps but on smaller order quantities this is difficult for the factory to manage.
The intents given by the factory don't appear to work which I believe might be because they are already being used by the CallForHelp app and the built in Walkie Talkie app.
We require a build of the OS on there but with intents from each button that are open to apps picking them up.
Idle Running Processes Setup
Additionally we found out that when the handset goes into idle mode it actually stops a lot of the running processes. We've had one software version done that keeps the accelerometer running and another app partner managed to force open the bluetooth connection when connected to a bluetooth speaker accessory but ideally we'd like to get this looked at and see what processes would be best to keep running.
For this we are looking to work with a UK based developer and in the future we will require more assistance with the handset, if you're interested then please reply to this thread or drop me a message and we can chat further.
Thanks, Ben.

[Q] App development environment...

Hi Folks,
I'm hoping to develop some gear fit apps but have no Idea which development environment to use. Can enyone help?
Many Thanks
BPM
Use android studio with an sdk, wchich you will find in dev section
I spent a few days over my last vacation writing an app (really a watchface). I used Tizen Studio (which is Eclipse under a coat of customizations). Rayman96 says to use Android Studio but I'd be surprised if that works given that the GF2 runs Tizen, not Android.
You can write your app either as a native C++ apps or as a webapp. I opted for a webapp since (a) it has all the capabilities I needed and (b) my C/C++ skills are probably a bit rusty at this point. It all pretty much works like you'd expect. There's a certificate you need to install and Studio comes with (or, more precisely, will download for you) a tool to request it. After that you use the Devices tool it comes with to find your GF2 on the network and then just push it to the device, very easy.
One note though: as of a week or so ago there was no emulator and proper app templates for the GF2... what's there is all geared (hehe) towards round watches. So, what I wound up doing it writing my app and testing it in Firefox, got it working there and THEN sent it to the device and dealt with any (pretty minor) issues there. It's not the best workflow, but it works. As a webapp, it more or less works like you'd expect, though depending on what you're writing you'll need to use the Tizen APIs, which obviously you won't have on Firefox or Chrome, so you'll need to stub them out somehow or just develop on device only, which is a hassle (no debugging that I could see for one thing).
Also, word of advice: always uninstall your app before pushing an updated version. It's a hassle, but what I found is that if you don't you'll wind up hanging Tizen Studio and have to restart it, and often times the GF2 as well.

[Q] REST Call in Tizen

Hi ,
I'm new at Tizen development. I want to make a simple REST call from my standalone Tizen Wearable App. Unfortunately I'm not getting any response. Is it possible to use REST in Tizen?
I even tried using an example getMyIP URL to avoid server side mistaken conduct.
Thanks for every help :good:

[dev] Android Wear port Galaxy Gear S

There is already an existing Android Wear port for the Samsung Galaxy Gear S which it seems has been overlooked. Basically it looks like DeejayBaca from xda started an alpha port of Android Wear running on the Galaxy Gear Live, and didn't seem to follow through on the project. I Would like to make people aware of this, post bugs, and continue development on the port (I think porting Android Wear to the Gear S will improve the functionality, versus the CM android port which seems to aim to use the Gear S as a tiny smartphone replacement). Below is the link to the alpha port:
GearS_Android_Wear_LCA43.zip:
http://www.mediafire.com/?u9a1tr1t1862232
I created a new thread for this so that an Android Wear port will get more attention, as I had to dig through many posts in the "[DEV] Gear S: Android Port" to find this very valuable working alpha version of Android Wear for the Gear S.
After flashing and running the above Android Wear alpha release for the Samsung Gear S, here is some initial feedback:
What works:
- Bluetooth pairing
- Setup / syncing with the Android Wear application with an Android device
- adb over usb/bluetooth working
- Displaying WIFI access points
- Navigating through various Android Wear screens
- Heartrate monitor
Current problems with alpha:
- Random crashes of setup wizard app while pairing with Gear S
- Intermittent crashes with "Android Wear" app while using smartwatch
- Occasional crashes every once in a while while using smartwatch causing reboot
- Crashing of "Settings" app occasionally when attempting to change settings
- most other installed Android Wear apps crash after some time is spent using them
- 2g/3g SIM cellar access doesn't work at all
It seems like this alpha is about 80% done, the main work which needs to be completed for it to be a fully functional port is to fix all of the app crashes which happen occasionally.
Hello, there is a version of Android Wear in the post of biktor_gj with Android CM12 port. Is there any link between both?
I didn't start the alpha version, bictor did I just shared his hard work. :what:
Sent from my SM-A710F using XDA Free mobile app
OK so this is not last version (ni bluetooth sync) but old one? Many crash for me. :/
Has there been any more updates to this ROM? where is the original post for this ROM from DeejayBaca?
Please don't post other members work without their permission, and use the threads that exist already.
Thread closed.
Darth
Forum Moderator

[DEV/LIBRARY]Amazfit Communication: 2 way communication for Pace/Stratos inc internet

Amazfit Communication Library
The Amazfit Communication Library is a reverse engineered and modified version of the Huami "Transporter" class (and its subclass "TransporterClassic"), along with its dependencies. This allows both sending and receiving data on both the phone and the watch, using the same library.
Bascially, this allows apps on the watch to access data via a companion app on the phone. To make this easier, this library comes hand in hand with the "AmazfitInternetCommunication" app, which can be installed on the phone and allows apps on the watch to access the internet and perform simple requests, with data in response.
However, you can use this library with your own companion app on the phone to access any data the phone app has access to, for example a companion app on the phone with access to calendar appointments would allow a watch app to display events on a calendar, on the watch.
Usage
See the GitHub repo for the latest code and guide for addition of the library. You can also compile it if you wish.
Amazfit Internet Companion
Amazfit Internet Companion is a generic and open source internet companion app for the Amazfit Pace and Stratos. It allows apps developed with the Amazfit Communication library to access the internet over Bluetooth via a phone's internet connection. As a developer, rather than having to develop your own companion app, you can simply have your users install the companion app and it'll handle the rest, so long as you use the internet functions in the library (LocalURLRequest). Link them to the thread or use your own guide, linking to the latest APK from the repo to use this.
Alternatively, you can develop your own companion app. This could be used for loads of things, for example a companion app could provide a watch app with the calendar events on the phone, provided the phone app had the right permissions and formatted the data correctly. If you want to make your own companion app, feel free to use the Internet Companion app as a base
Hi Quinny, thanks for your great work. Did you make tests of how much this affects the battery life, egg with your train app?
Is it possible to run this in as a background service on watch?
Klaus3d said:
Hi Quinny, thanks for your great work. Did you make tests of how much this affects the battery life, egg with your train app?
Is it possible to run this in as a background service on watch?
Click to expand...
Click to collapse
I've not done proper tests but I've had it running for a few days with no noticeable effect on the life. Yes, you should be able to use a background service on the watch, if you need an app on the watch to always be available for receiving information from the phone - but bear in mind that the watch only has 512MB of RAM, so a running service is more taxing on the watch compared to a phone. You may be better off with a background service on the phone that stores the information you wish to send to the watch, which then responds to the watch app when it's run - an ondemand request if you will
Quinny899 said:
I've not done proper tests but I've had it running for a few days with no noticeable effect on the life. Yes, you should be able to use a background service on the watch, if you need an app on the watch to always be available for receiving information from the phone - but bear in mind that the watch only has 512MB of RAM, so a running service is more taxing on the watch compared to a phone. You may be better off with a background service on the phone that stores the information you wish to send to the watch, which then responds to the watch app when it's run - an ondemand request if you will
Click to expand...
Click to collapse
So if the watch can get any data from the phone, does that mean I can run Wear apps, like the Hangouts Wear app, on the watch and use it as it works on a regular Wear device? If so that would be incredible.
still work for watches in 2020?
hello, I know it's been a while since the last time this topic was discussed, does anyone know how to inform without this package still working today? I recently purchased an amazfit verge and since my house is completely automated, I want to develop an app for personal use ... thanks!
delphiover said:
hello, I know it's been a while since the last time this topic was discussed, does anyone know how to inform without this package still working today? I recently purchased an amazfit verge and since my house is completely automated, I want to develop an app for personal use ... thanks!
Click to expand...
Click to collapse
Still works, not tested it on the Verge though. Should work the same, they use the same framework I think.
Quinny899 said:
Still works, not tested it on the Verge though. Should work the same, they use the same framework I think.
Click to expand...
Click to collapse
cool, thanks for the reply!

Categories

Resources