Reply | Reply To: Broadcast Intents: How to use it???

Home Forums Mooshimeter Support Broadcast Intents: How to use it??? Reply To: Broadcast Intents: How to use it???

#14717
admin
Keymaster

Hi Crada,

Interesting… here is my hypothesis:

The voltage and current reading are always received together within the app, and they are sent as separate intents one after the other (current first, then voltage). But they have the same intent type (com.mooshim.mooshimeter.SAMPLE_INTENT). So my guess is that your version of Android is doing something “clever” and discarding the second intent (voltage) most of the time because it already has a pending intent with the same name.

I modified the code to split the intent names. I hope this will get around the issue. Are you using the beta or are you building from source code? If you’re building from sourcecode, pull an update on the beta branch and try again. If you’re using the beta, it’ll be in the next release.

You can see the code change here:
https://github.com/mooshim/Mooshimeter-AndroidApp/commit/6491ec891917e6b2ef51e6a73c35ab756dd33b14

~James