- This topic has 0 replies, 1 voice, and was last updated 6 years, 9 months ago by Anonymous.
- February 8, 2017 at 6:04 pm #15684DuaneGuest
I finally figured out how to change the source code to allow intents to function when the app goes into background. Whew! And also the change now allows broadcast of all three channels, including MATH. It is available here https://github.com/DuaneOne/Mooshimeter-AndroidApp-34beta-BcastIntent
Please provide some feedback on success or problems.
- February 8, 2017 at 6:12 pm #15685AnonymousGuest
- February 8, 2017 at 6:41 pm #15686AnonymousGuest
I tried listening for these events but didn’t see any foreground or background
I never saw any events. This was after side loading the apk checked into the repo
- February 8, 2017 at 7:03 pm #15687AnonymousGuest
As the Readme says, Set the receiver action to “com.mooshim.mooshimeter.CH1-3”. All three intents are in that one.
- February 8, 2017 at 7:09 pm #15688AnonymousGuest
more specifically in your case, change the first one to
then delete the other 2 actions.
- February 8, 2017 at 9:17 pm #15692adminKeymaster
Awesome Duane! I’ll take a look and merge them in to the main codebase.
- February 9, 2017 at 5:27 am #15706AnonymousGuest
I tried com.mooshim.mooshimeter.CH1-3 first but got this error from the build
Error:(33) Tag <action> attribute name has invalid character ‘-‘.
So then I figured your intent was individual ones. I’m using android studio 2.2.3.
- February 9, 2017 at 7:43 am #15709AnonymousGuest
Hmmmm, don’t know why since I’m also using android studio 2.2.3. But let’s just make this simple. Give me an hour or so and I will recompile with action of ”com.mooshim.mooshimeter.CH” The action just has to be unique, no need for me to get fancy. Thanks.
- February 9, 2017 at 8:22 am #15710AnonymousGuest
Changed. See if the new apk works for you now.
- February 10, 2017 at 6:10 am #15724AnonymousGuest
Works like a charm
- February 26, 2017 at 5:32 pm #15932AnonymousGuest
On my GitHub, I have updated the app to also broadcast the mooshimeter battery voltage. Now I can have my phone beep or send a text message, etc when the meter battery gets low (using a Tasker sketch). I updated the Readme at the first post above. I think I am done with my updates. Famous last words :)
Also, on my GitHub, I updated my tool I have used to display what the mooshimeter app is broadcasting. https://github.com/DuaneOne/Broadcast_Intent_Tool/tree/master It is really just a simple receiver with a simple display of data received. So folks can see how it works, and use it without restriction. For those wanting to write their own receiver code, the tool will also send out a single value (pi), no units, in mooshimeter broadcast format for testing.
– – Duane