I'm not entirely sure about how it works on Android I'm afraid - maybe you could ask on stackoverflow or similar.
Looks like it's already been asked: http://stackoverflow.com/questions/19914244/creating-background-services-for-bluetooth-low-energy-on-android
It's worth googling - there seem to be a bunch of other posts about it too.
I'm not quite sure what you mean about decoding the data? could you give an example?
@Gordon started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'm not entirely sure about how it works on Android I'm afraid - maybe you could ask on stackoverflow or similar.
Looks like it's already been asked: http://stackoverflow.com/questions/19914244/creating-background-services-for-bluetooth-low-energy-on-android
It's worth googling - there seem to be a bunch of other posts about it too.
I'm not quite sure what you mean about decoding the data? could you give an example?