1

I am building an application where I would like to have a heart rate over a certain threshold trigger and event. I'm wondering if there's any way to do this by using data retrieved by another app on the phone (heart rate app) in my own application. I would rather not have to build a heart rate sensor from scratch!!

For example, using data from an app like this : https://play.google.com/store/apps/details?id=com.macropinch.hydra.android&hl=en

Can I even do this? Or do I need a developers permission, or is the data output to files on the phone I can just read?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
MattTheHack
  • 1,354
  • 7
  • 28
  • 48

2 Answers2

2

This is already discussed in another thread. Threre are mainly two methods, one is contentprovider and the other is sharedpreferences. But app that provides data should implement those. Data sharing between two applications

Community
  • 1
  • 1
MckyONeil
  • 94
  • 3
1
I'm wondering if there's any way to do this by using data retrieved  

by another app on the phone (heart rate app) in my own application

If other application is providing remote service (look AIDL) then your application can call that service to achieve functionality.but AFAIK Cardiograph doesn't provide such service.

Or do I need a developers permission, or is the data outputted to files on the phone I can just read?

The only option i see here is to obtain Souce Code for that obviously you need to contact developer :D

If this application is outputing data on SD card then you can read it.

Vipul
  • 27,808
  • 7
  • 60
  • 75
  • I followed your suggestion and received source code from a developer of a heart rate app and I am now modifying his application to work with mine! Thanks to both answers! – MattTheHack Jun 12 '12 at 14:23
  • haha Cheers!! let me know your application name i will download it :) – Vipul Jun 12 '12 at 14:28