Can we use a Service or Broadcast Receiver?


#1

Can we use a Service or Broadcast Receiver via an extension?


#2

en teoria en appybuider si es posible, pero no estoy seguro como lo voy a hacer pero debo copilar con la fuente de appybuilder


#3

I think answer is yes. I believe @Taifun has created extension using BroadcaseReceiver


#4

Did a little research.
The Texting Component uses a SmsBroadcastReceiver.


#5

That’s correct. However, you were talking about extension:


#6

Good point!
When I get some time, I’ll try converting the component to an extension and see if it works before trying to make my own.


#7

I also need to figure out how to create a service for onTaskRemoved().


#8

Based off of this post, I’d say it’s possible with based off of this post:
https://groups.google.com/forum/m/#!topic/app-inventor-open-source-dev/7KSVO3c3HSA


#9

Yes, I’m pretty sure the Alarm Extension would need one.


#10

I now open sourced the headset plug status extension, which uses a broadcast receiver,
for details see here https://puravidaapps.com/headset.php

Taifun


Trying to push the limits! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun.


#11

Thanks @Taifun this will surely help me and many others!


#12

Thanks @Taifun I got it to work!