LightBlog

samedi 2 avril 2016

Google Fit heart rate monitor code : onDataPoint not called

I',m trying to read heart rate from MIO FUSE device. when connected via the app, the Mio Go App does not sync data with Google fit. I tried directly pairing the device via bluetooth menu and enabled 'Body Sensor' from google fit app.

Code:

Fitness.SensorsApi.findDataSources(mGoogleApiClient, dataSourceRequest)
                .setResultCallback(dataSourcesResultCallback);

returns a data source with name of the device and type "DataType.TYPE_HEART_RATE_BPM" datasource. I use that data source to register a listener to get the data. I used the following code for that.

Code:

SensorRequest request = new SensorRequest.Builder()
            .setDataSource( dataSource )
            .setDataType( dataType )
            .setSamplingRate( 10, TimeUnit.SECONDS )
            .build();

Fitness.SensorsApi.add(mGoogleApiClient, request, this)
            .setResultCallback(new ResultCallback<Status>() {
                @Override
                public void onResult(Status status) {
                    if (status.isSuccess()) {
                        Log.e(TAG, "SensorApi successfully added");
                    } else {
                        Log.e(TAG, "adding status: " + status.getStatusMessage());
                    }
                }
            });

This method successfully executes and I get the success result too. But I did not get any callback to

Code:

@Override
public void onDataPoint(DataPoint dataPoint) {
    //do stuff
}

Is there anything more I have do before getting the values.

Phone : MOTO X Running on Android M Bluetooth device : Mio Fuse

1) is there an issue on the way I try to get the values?

2) is there any other way (an app) where I can register the device which will push periodical heart rate results to google fit. I tried this app Heart Rate OS2 app but it did not even asked me to pair my device with it. Endomonodo and Sport gear tracker reported the heart rate along with activity but not directly.


from xda-developers http://ift.tt/1UKE5v9
via IFTTT

Samsung S5 G900F (Marshmallow) User manual

Hi,

Samsung was yesterday updated the G900F MM user manual !

But I think this is (April fools)from Samsung because the UM file corrupted also till now no official MM update for G900F !!



Verstuurd vanaf mijn SM-G901F met Tapatalk


from xda-developers http://ift.tt/25CF9EB
via IFTTT

[RECOVERY][crackling] UNOFFICIAL TWRP 3.0.1-0 [2016-04-02]

Team Win Recovery Project 3.x, or twrp3 for short, is a custom recovery built with ease of use and customization in mind. Its a fully touch driven user interface no more volume rocker or power buttons to mash. The GUI is also fully XML driven and completely theme-able. You can change just about every aspect of the look and feel.



CHANGELOG for 3.0.1-0:

-support new CM 13.0 pattern encryption (sultanqasim)
-fix slow flashing issue due to modprobe (present on only some devices) (#twrp)
-libtar updated to latest upstream and fixes (jcadduono)
-fixes for loading custom themes (_that)
-TWRP will now detect and install TWRP themes automatically through the normal zip install process (Dees_Troy)
-translation updates - added Italian, Czech and Polish and significant updates to Dutch
-progress bar improvements - progress bar updates during image flashing and better tracks progress during file system backups (tar) (Dees_Troy)
-fix input box text display (Dees_Troy)
-reboot option after zip install complete (bigbiff)
-other mostly invisible bug fixes and improvements

Installing:
FOR CURRENT TWRP USERS:
  1. Download the zip file and flash it within TWRP. Your device should reboot automaticly into the new TWRP.

FOR NEW USERS:
  1. Download the img file and place it in your platform-tools folder on your pc.
  2. Reboot your device in fastboot.
  3. Open a command window in that folder and run commands:
Code:

fastboot -i 0x2970 erase recovery
fastboot -i 0x2970 flash recovery recovery.img
fastboot reboot




from xda-developers http://ift.tt/25CF6su
via IFTTT

Please help !!! S6 Edge+ SM-G928x Live demo Unit - pit file

Hello
Please can anyone help me to find S6 Edge+ SM-G928x Live demo - pit file. I have installed wrong one, and now i lost the original one.
Phone stuck on samsung startup screen.

Please help :(


from xda-developers http://ift.tt/237xH2d
via IFTTT

Compendium of all sneaky background reporting settings on Galaxy S7

Gents and ladies,

Tmobile SD820 S7 flat user here, and like everyone else, have the high android system battery drain issue I have been trying to hunt down. Till samsung and tmo release a fix, I thought it would be beneficial to create an exhaustive list of all the phone settings where sneaky reporting and syncing is going on. The more I look, the more I find these backdoors in android and starting to get very irritated with the whole android ecosystem. An average user should not have to mess with their phone this extensively to get it to perform adequately. Maybe there is something to what the apple nazis say about an ecosystem where they control high quality. Marshmellow was supposed to come with better battery life (as they promised with Lollipop as well).

Anyway, enough ranting. Here is my list, please feel free to add more and I will update the OP.
  • Google activity controls - Google now page, settings at the top, then Google account settings, then accounts and privacy, then google activity controls. Turn off location history and other activity controls that you find you don't need.
  • Diagnostics reporting to Google - Google now page, settings at the top, then Accounts and privacy, turn off "help improve google"
  • Diagnostics reporting to Samsung - Samsung settings - personal - privacy and safety - Report diagnostic info - Off
  • Turn off anonymous reporting in Language and input - Settings - language and input - text to speech, google text to speech settings, then settings and turn off anonymous reporting
  • Turn off other security reports - Settings - lock screen & security - other security - security reports
  • Turn off unwanted syncing - Go to settings - accounts and check every account including Samsung, Whatsapp etc. and turn off syncing.
  • Turn off Contacts searching for nearby places and invoking location - Settings - applications - contacts and turn off "search for nearby places"
  • Turn off background data usage for unwanted apps - Settings - data usage - go through every app that you don't want background data usage for, and turn off
  • Turn off unwanted notifications - settings - applications - notifications
  • Turn off pop-up notifications for applications - settings - notifications - advanced settings - disable pop-up
  • Turn off push notifications for messages app - settings - applications - messages - turn off push. This does not impact receiving SMS/MMS.
  • Turn off OK Google detection from everywhere except home screen. Google now page, settings at the top, then voice then "OK google detection"

Other tips I have tried but I am not sure have helped:
  • Disable google now on tap.
  • Optimize battery usage for as many apps as you desire.
  • Disable wifi scanning and nearby device scanning - settings - location - improve accuracy and turn off wifi and bluetooth scanning
  • Enabled wifi smart network switch
  • WiFi calling turned off
  • VOLTE turned off

I cannot live without / do not want to compromise on (so will optimize battery despite the following always on):
  • Google now with high accuracy location mode
  • AOD
  • VOLTE
  • BT always on
  • Screen brightness set to 75%
  • WiFi calling set to on


from xda-developers http://ift.tt/1TqxzYW
via IFTTT

Apps edge and icons

Hey. When using edge screen, icons simply won't change in "Apps edge" after applying any of the icon packs. I am using Nova Launcher. Any solution to that?


from xda-developers http://ift.tt/1pTN2F0
via IFTTT

How to root Micromax Nitro 4G [E455]

How to root Micromax Nitro 4G [E455]
Tried all method with phone and PC also but didn't get success
Can I root this phone By flashing SuperSu.zip ?


from xda-developers http://ift.tt/1TqxxAc
via IFTTT