yashsingh1/xdaforums huggingface dataset:
[Samsung Gear Fit] FitzAusTex:
I installed the debug apk. It loads fine. I click scan and I do see the 5 @, then Entries 0 through 3, with 0 = Gear Fit, 1 = BT headset, 2 = my android wear watch and 3 = null. After the Entries listings, there are Values listed for all four, even for the #3 null.

Not totally following you as far as trying out two things... What's the 2nd thing you'd like me to try out? I'm not getting the 5 @ on app load, only when I hit Scan. And I'm still getting forced close when, and only when I hit Show Devices. And this only started happening the other day, and now happens every time even with older builds.
[Samsung Gear Fit] jareddlc:
[MENTION=2797874]FitzAusTex[/MENTION] you should be getting the '@' at first launch, or each time you close the app using the notification stop command (notification bar). If you are not, that means it is not loading old saved settings, which is another issue entirely, maybe I have a race condition. Oh forgot to mention, was the value for the null entry aslo null? or did it have a mac address

In any case I think the problem is that either the scan or in the list of your paired devices, there is an entry that is null, which is causing the dialog to crash and crash entire app. I will improve this logic, and im almost certain it will fix your issue.

As to why has this had recently started happening, I can only speculate that maybe a bluetooth device was brought into your proximity and that device does not have a name associated with it, whether it be yours or a someone nearby laptop etc. Of course this is just speculation, It could also be that you have renamed one of your paired or saved bluetooth devices without a name?

in any case I'll try to submit a patch for this case tonight.
[Samsung Gear Fit] FitzAusTex:
ok, no 5 "@" when i launch app. I don't get those until I hit "Scan". Also don't get 5 "@" when i use stop command from OpenFit notifications. And yes, there is a mac address for "Values 3: xx:xx;xx;xx;xx;xx" (where xx is an actual mac address of something I must own, as it is showing up in my Bluetooth settings under Available devices).

Thanks for all your feedback. And I hope that anything you fix/change will make your app better for other potential users, and isn't to fix my problems. I'm just providing feedback cause it's kinda fun, and I also look forward to what you end up doing with your app.
[Samsung Gear Fit] jareddlc:
yup sorry for the misunderstanding, it should only happen when you launch the app. Not when stopping the app. I only mentioned that to differentiate from "resuming" the app. but in any case thanks for testing. I'm almost certain that is the issue at hand.
[Samsung Gear Fit] jareddlc:
[MENTION=2769042]kazmer[/MENTION] yes that will be of great help! especially for fitness. however the process may not be as simple. are you rooted? The way im thinking would require you to wipe the data on your gear fit, such that i have a "clean state" to gather fresh data on heart rate or pedometer etc. and try to match the raw data to what the official app received. Dont do so yet, if you are willing.
[Samsung Gear Fit] jareddlc:
8-17-2015

Fixed bug if bluetooth doesn't have a name or mac address? which was related to force close when clicking 'Show Devices'

Removed 8-17-2015, Fixed an auto reconnect bug.

Download: 8-18-2015

hopefully this fixes the show devices crashing. :fingers-crossed: [MENTION=2797874]FitzAusTex[/MENTION]
[Samsung Gear Fit] kazmer:
My phone is not rooted, and it can't be, because if it's rooted i can't acces my work emails. (I tried but i can't trick the EMM client) :(
[Samsung Gear Fit] FitzAusTex:
Jareddlc, I'm no longer getting the force closes when I hit Show Devices, and yes I'm seeing three No Device Name in the list. Yea! The next problem I'm having is when I hit Connect. I'm getting Gear Fit Rfcomm failed dialogue, and obviously no check mark for Connect. I've cleared cache and app data, uninstalled, and reinstalled OpenFit. Also want to point out that since I can't connect, if I back out of OpenFit with back button or home button, when I reopen OpenFit, bt devices are gone, but that's probably intentional? Thanks for continuing to bang away at your app!

Also not currently rooted, but considering doing soon, and I'm highly interested in helping out with testing for any work you do on Google Fit.
[Samsung Gear Fit] jareddlc:
Are you seeing 3 'No Device Name'? I thought you only had 1 of 4 that showed up as null. It should show the list of other names just fine, but when a device doesn't have a name, It should show up as No Device Name. Do you see the gear fit in the list? or are all the options 'No Device Name'? If so i probably screwed up my logic, and need to fix it. [MENTION=2797874]FitzAusTex[/MENTION].

As to why its not allowing you to connect, are you selecting Gear Fit from the list?
[Samsung Gear Fit] FitzAusTex:
sorry if I wasn't clear, yes, seeing gear fit as first in list, then my Bluetooth headset and then my android wear watch and then three No Device Name. My phone's Bluetooth settings sometimes shows two or three other Bluetooth devices available, so it makes sense that OpenFit is showing three No Device Name. Yes, I select Gear Fit from list before hitting Connect.

Seems to me the change you made definitely worked, since no more force closes when selecting Show Devices. Just not sure yet why I'm getting "Gear Fit Rfcomm Failed" when hitting Connect.
[Samsung Gear Fit] jareddlc:
[MENTION=2797874]FitzAusTex[/MENTION] I'm scratching my head with this one. Does it ever connect? Do you always see the message 'Gear Fit Rfcomm Failed' or just a few times? All that message means is that it failed to connect to the gear fit. I sometimes fail once, but usually works the next time i hit connect.

There was a bug with autoreconnect, that i should have solved with 8-18-2015 build. But the bug was that it will always try to autoconnect even if connected, which will prompt 'Gear Fit Rfcomm Failed' every 10 seconds infinite times, util you close the app using the "stop" button. Is this what you are experiencing?
[Samsung Gear Fit] FitzAusTex:
Been playing with it for a few hours, and I think i've figured out what's going on. I can only get OpenFit to connect to my Gear Fit (using 8-18-15) if there are NOT any "No Device Name" in the devices list. If there is even one "No Device Name", the "Connect" setting will not connect. I took my Gear Fit and my phone outside into a field, where I thought there shouldn't be any BT devices, and "Connect" works. Bringing it back into my apartment, and doing a Scan repopulates some "No Device Name", and then it won't connect. Not sure that this helps you understand what's going on, but thought I'd report it.
[Samsung Gear Fit] jareddlc:
thanks, what I might do, if a device doesnt have a name, I simply will not add it to the list. It could also be a bug in the way im scanning. I'll try to think of some fixes. But when you took it out to the field, was everything working accordingly?
[Samsung Gear Fit] FitzAusTex:
Yeah, when I ran a scan where I was reasonably sure my phone would not detect any stray bt signals (an open field, and driving in my car) it worked just fine. Tried it successfully twice so far.
[Samsung Gear Fit] Seba30:
Hi all.

I updated version of the Open Fit 8-15 to 8-18 and it was mistake. I can not connect with the watch. All the time I got the message Gear Fit rfcomm Failed.

The worst part is that after returning to the old version when selecting devices show crashes app has been closed.

There is a chance to fix it if I have to again restore the factory default settings

Please help, thank you in advance and sorry for my English.
[Samsung Gear Fit] jareddlc:
for those of you who are having connection problems, please run this "debug" version and let me know what text appears when you try to connect to the selected device.

You do not have to list the mac address (this is the number like 1x:2x:3x:4x:5x:6x) this number should be valid and not empty.

I changed the logic a bit, but im doing this before work so I didn't get much time to test

download in attachements
[Samsung Gear Fit] Exelion:
This application has been tested on Sony Z3Compact? Everything works properly? Thank you :)
[Samsung Gear Fit] thijsnl:
Yes, works for me!
[Samsung Gear Fit] cr8tonc:
Need help with email notifications

Hello, I was wondering if anyone could help me out here. Everything is working wonderfully with this latest update except I don't have an option to get corporate email notifications. There isn't an outlook app in the list so I can't manually add it and it also doesn't show corporate email as a main selection (only messaging and phone calls). Is there anyway to get this to work?

thanks so much! Love the open fit and support it completely.
[Samsung Gear Fit] jareddlc:
[MENTION=6893399]cr8tonc[/MENTION] do you have an outlook app on your phone, but it doesnt show up in the list to add applications?

Or you do not have your corporate email on your phone, and you want to know how to add it?

I'm wondering if it is marked as a system application. I filter applications, and do not add system applications. So if you have it installed, but it doesnt show up, could you give me the package name. This is usually found when you go to: Settings>Apps and when you click on the app name to hit uninstall, it should show you the package name usually something like "com.companyname.appname" I could create a filter list, such that common apps are addable.
[Samsung Gear Fit] cr8tonc:
I do not have an installed app for outlook, I simply set it up through the mail settings on the factory device which has an outlook/exchange option. I did however try installing the app after you mentioned it but unfortunately it isn't working with my company's server so I am stuck with the default application. This application doesn't show up in my running apps or apps under settings so I'm not sure if there is a fix for this. I'm assuming it falls in the same category of the Phone and Messages apps. Let me know if there is anything else I can do to help, would love to get my work email notifications!
[Samsung Gear Fit] jareddlc:
[MENTION=6893399]cr8tonc[/MENTION] im on CM12.1 and the default email client is gmail, which is a system app and i whitelist for gmail which has the name com.google.android.gm im guessing your email client is com.android.email? i will add this to the whitelist, such that you can also add it to the 2rd party applications. However It will still have the problem with gmail. Emails content are protected and I cannot access the email to display on the device, other than the short summary that is displayed on the notification.

Are the other system apps that users want added to the "whitelist".
[Samsung Gear Fit] cr8tonc:
Okay great, i hope that works. Hopefully I accurately described the situation. The place I found this was under settings>accounts>add account then chose email, then it gave me a list of email providers and I chose outlook.com

when i select the app and goto app info it says version MOTOEMAIL-00.00.02.0035

Thanks again
[Samsung Gear Fit] jareddlc:
8-20-2015

New Notification actions. Stop: kills the app+service, Connect/Disconnect: easily connect from the notification.

Improved MediaController displaying track info. However I managed to break the volume, BT. I cannot seem to trigger the BT when volume is pressed. If anyone has stock rom and able to capture BT logs, please let me know.

Added placeholder text when no 3rd apps are selected.

Reverted back to old style of loading saved settings. Hopefully I don't introduce new bugs.

immediate todo list:

Find a better way to filter apps, Question for everyone. Do you mind if you see alot of system apps on the add application list. example wallpaper app, other apps that may not necessarily apply to notifications, or would a whitelist be better?

Making good progress with fitness so far, I've found time stamp and I think pedometer results. I still have to try to decipher data.

Volume media controllers

Download: 8-20-2015
[Samsung Gear Fit] helixpomatia:
This new version is not working at all... Forceclosing before it starts :(
[Samsung Gear Fit] jareddlc:
[MENTION=3178233]helixpomatia[/MENTION] try the file below. If it fixes the issue what version of android are you on?
[Samsung Gear Fit] chinseng85:
installed the latest version. when i click on media controller, the app force close., then bt disconnected. my device is htc one m8 android 5.0.1
[Samsung Gear Fit] helixpomatia:
I report the same bug: it force closes, when entering into Media controller menu.

Statusbar connecting works fine.
[Samsung Gear Fit] jareddlc:
[MENTION=541438]chinseng85[/MENTION] which music app do you have installed? Does notifications work? Does changing the time from 12hr/24hr work?

[MENTION=3178233]helixpomatia[/MENTION] I was adding new support for Bluetooth scanning for lollipop, as the Ble scanning, introduced in jellybean is now deprecated. But i forgot and I left the import lollipop scanning, so if you aren't on lollipop it would crash.
[Samsung Gear Fit] FitzAusTex:
On 8-20-15_fix,I'm getting "Attempting to connect to: DEFAULT", and then Rfcomm failed when I hit Connect. But at least there are no No Device Names listed.
[Samsung Gear Fit] jareddlc:
[MENTION=2797874]FitzAusTex[/MENTION] I decided to remove the "No Device Name" if it doesnt have a name, it will not add it. However the DEFAULT is the default text for an unselected device, meaning the app hasnt selected a Device. If you scan, do you see the gear fit? has it been paired already? What shows up on the device list.

As far as media controller failure, I have my suspicions why and i'll try to fix it soon.
[Samsung Gear Fit] FitzAusTex:
Jared,

Yeah, Gear Fit is paired and at top of list, then my Bluetooth headset is next and my android wear watch last. After I scan I definitely see Gear Fit in list and it is already preselected, so I select it, and then hit Connect. And then get the DEFAULT dialogue and Rfcomm failed dialogue.
[Samsung Gear Fit] jareddlc:
[MENTION=1014214]Seba30[/MENTION] I will work on alarm notifications along with weather notifications in the near future.
[Samsung Gear Fit] chinseng85:
[MENTION=2992563]jareddlc[/MENTION] Notification and clock format is working fine.

I have these music app installed

.

I noticed another issue, every times I killed open fit in the Recents App. Bt will be disconnected. Tried to use the connection action in notification to reconnect. However it doesn't reconnect. I have to launch open fit again, perform scan device, select device, click on connect. Then finally it will reconnect again.
[Samsung Gear Fit] jareddlc:
8-21-2015

I'm hoping I squashed a lot of bugs with this build. :fingers-crossed:

Misc Bluetooth list bugs

Media Controller bug fix, volume buttons working again thanks to an XDA user who PM'd me the logs for Media controls. I will not reveal their name unless they would like for me to do so.

Fixed DEFAULT device when connecting

Renamed the notification Close for Shut Down, as it may cause confusion with close versus disconnect

Note: To avoid any issues with saved preferences, please uninstall any previous versions before installing this version. I have switched the Applications name. it will no longer show up as com.jareddlc.openfit and will now show up as a new name (preparing for google play :highfive:)

Download: 8-21-2015

working on fitness data as well.
[Samsung Gear Fit] chinseng85:
I'm really appreciated your work. However i still encounter few issues with this build

1. Gear Fit will disconnect, when i close Open Fit in Recent Apps.

2. Tap on Media Controller now won't FC Open Fit app, but not behave normally. Next track now become fast forward the song, Previous track button has become backward the song. Volume +/- not functioning.

3. The connect action button at notification sometimes not working, i have to go to Open Fit app, click Connect/Disconnect button.

Hope you can iron out these issues, and have a smooth Play store launch :)
[Samsung Gear Fit] Pavel_NSK:
Hello.

Do not worked in Android 4.3?
[Samsung Gear Fit] FitzAusTex:
So far so good with my Nexus 5 on 5.1.1 with 8-21-2015. WIll monitor Bluetooth connectivity stability today. My Gear Fit would disconnect on 8-20-2015_fix and not reconnect. Thanks for your work!

Jared, since you're moving along with development I thought I'd compile a list of the additional functionality that I'm aware of that is present for owners of Gear Fit when synced with Samsung phones.

I know you're working on some of these, but perhaps you'd take a survey to find out which features we're interested in most? My ranked preference of what I'd like to see is listed below, but others would prioritize differently.

1. "Canned" replies to messages

2. Reply to a call with an "Edit call-reject message"

3. Notifications separated out by app, rather than all notifications dumped into "Message"

4. Launch/open Open Fit app when tapping the persistent Open Fit notification

5. syncing of Pedometer/Exercise data to Google Fit

6. syncing Sleep data

7. syncing Heart Rate data

8. ability to access weather info

9 . Volume control of Media Controller

10. "Show on Device" option to work from notifications

11. Functional "Find My Device" to locate our phones
[Samsung Gear Fit] aresffm:
Here my facts:

Galaxy S3, KK 4.4.4- pairing worked,

Clock: :good:

Media : Play/Pause/ Forward/ backward :good:

Volume buttons: don´t work

notifications - not testet

Nexus 4 Lollipop 5.1 - pairing works, need 2 retries(try the folowing: restart gear, Phone: 1. disable BT, 2. enable BT, 3. wait 5 seconds, try a connect and watch for pairing notification in top menu )

Features:

Clock: :good:

Media : Play/Pause/ Forward/ backward :good:

Volume buttons: don´t work

notifications - not testet
[Samsung Gear Fit] jareddlc:
[MENTION=541438]chinseng85[/MENTION] yes, i noticed this on my way to work today. I'll look into it. What version of Gear Fit are you running. I haven't modified any of the next/prev/play buttons at all. The connect button from notification doesn't connect due to the bug mentioned about disconnecting when removing apps from recent list.

[MENTION=6896697]Pavel_NSK[/MENTION] The current minimum version is API v19 which is 4.4 I think. I am using a Notification Listener, which was introduced in API v18, but a feature I'm using uses API v19, its what grabs the contents of the notification. However It could officially support android 4.3. I have not yet decided if I will do that, and whats the priority of that feature.

[MENTION=2797874]FitzAusTex[/MENTION] thanks for the list. very helpful. some of these features Im not sure I will be able to implement such as:

1. "Canned" replies to messages

2. Reply to a call with an "Edit call-reject message"

10. "Show on Device" option to work from notifications

Most of these features will probably need to introduce the need of a database, such if you clear out a notification from the phone, but it still exists in the watch, and you at some point in future from the watch try to do something on the phone, that notification might not exist anymore. My knowledge of android is very limited, as im still learning.

3. Notifications separated out by app, rather than all notifications dumped into "Message"

I've been thinking alot about this one for some time. I know the Gear Fit Manager only allows up to 10 apps. My goal was to remove that limitation, and sending as "Message" achieves that, however the down side is that you no longer have notification types. And I think what would be the user experience, first 10 apps added with have icon, but the rest wont? That seems like odd behavior to me. But I haven't yet looked at the protocol yet, Maybe I could have separate Messages without the limit of 10 icons. I'll do some more researched

I'm hoping pedometer data is almost done. I need to figure out the structure of the raw data.

[MENTION=6893132]aresffm[/MENTION] volume for medial controls havent been implemented yet. For you S3 4.4 how do you try to connect to your gear fit? Does it show on the list of devices? Make sure you are not running official Gear Fit Manager, if you have it installed.
[Samsung Gear Fit] aresffm:
[MENTION=2992563]jareddlc[/MENTION] OK. Yes Gear Fit Manager was stopped. Maybe my gear was confused of the device switching S3/Nexus ;)
[Samsung Gear Fit] chinseng85:
[MENTION=2992563]jareddlc[/MENTION] my gear fit firmware is R350XXU0BOA2. I had tried the media controller with Samsung Gear Fit Manager, it works. Probably HTC rom has different key mapping, not so sure. Btw media controller is not a must have feature to me.
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] is it possible if you can have a look at the moving around of icons on the gearfit I think if we could send logcats with screenshots of everything we could help you since I understand you can't use the gearfit manager at all. and also maybe default double tap function aswell.
[Samsung Gear Fit] jareddlc:
8-22-2015

[MENTION=541438]chinseng85[/MENTION] that might be right. [MENTION=5914883]Danieldan5152[/MENTION] I do have access to gear fit manager, but functionality is very weak. I tried getting the information regarding buttons for double tap, I may have the raw data, but i feel those logs are going to be hard to find, I have soooo many logs :crying: It may be easier to have a new set of logs to work off. In anyways its a feature a few have requested. My top priority right now is to get stable app, so i can upload to google play. then it fitness.

bug fixes?

closing UI should keep service running in background? I did not change anything related to it, but some reason its working for me. However I think it wont work for others.

Download: 8-22-2015
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] changelog please

---------- Post added at 07:00 AM ---------- Previous post was at 06:44 AM ----------

[/COLOR [MENTION=2992563]jareddlc[/MENTION] latest build so far only issue is when I close the app from app manager it disconnets I don't know if it was in prev builds since I didn't test them long. But I'm switching to cm12.1 so I'm making the move to openfit
[Samsung Gear Fit] jareddlc:
[MENTION=5914883]Danieldan5152[/MENTION] seems like it didnt fix the bug :( i'll try again tomorrow.
[Samsung Gear Fit] Danieldan5152:
[MENTION=2992563]jareddlc[/MENTION] seems it is a cm12 issue since when I updated to cm12.1 it doesn't do that. So maybe the memory leak issue in cm 5.0.x
[Samsung Gear Fit] FitzAusTex:
8-22-2015 allows me to swipe Open Fit away in recent apps list without Open Fit shutting down, yea! I can now also use the connect and disconnect options from the notification, yea! None of these were working for me before 8-22-2015. Thanks Jared!

---------- Post added at 11:16 AM ---------- Previous post was at 11:02 AM ----------

Also noticed a small bug where the notification says "disconnected" but it is actually connected. Not sure what I did to cause this yet, but will monitor it.
[Samsung Gear Fit] FitzAusTex:
I need to add that the notification has twice shown disconnected when it was actually connected. Most of the day so far has been showing connected when connected.