How to start an App Inventor app after any incoming call

514 views
Skip to first unread message

Shivendra Kr. Sahu

unread,
Jul 11, 2017, 5:19:21 PM7/11/17
to MIT App Inventor Forum

How to start an App Inventor app after any incoming call .

& receive the call  & also broadcast 1 predefined msg . which are as mp3 or any sported format.
often then also save that msg which give the caller .
it may possibly with mit ?????????

SteveJG

unread,
Jul 11, 2017, 7:26:56 PM7/11/17
to MIT App Inventor Forum
The App Inventor app must be running when the incoming call is received.  AI2 apps cannot run as a service, that is what is required to start an AI app after any incoming call.  AI2 apps cannot presently run in the background; that is necessary for your app.

If your AI app is already running you can use the PhoneCall component Event handlers to start an activity  http://ai2.appinventor.mit.edu/reference/components/social.html#PhoneCall  

Broadcast a predefined msg .... use the Texting component   or do you really mean the app will play a sound file when the phone rings?   If so, then you will need the Player component.

The above is a simplification.   You have a lot to learn to develop this app and some of the feature you want cannot be coded with App Inventor.  You could code something similar.

We want you to have fun with App Inventor so here are some resources to help you learn to use the AI2 tools  A very good way to learn App Inventor is to read the free Inventor's Manual here in the AI2 free online eBook   http://www.appinventor.org/book2 ... the links are at the bottom of the Web page.  The book 'teaches' users how to program with AI2 blocks.

There is a free programming course here http://www.appinventor.org/content/CourseInABox/Intro  and the aia files for the projects in the book are here:  http://www.appinventor.org/bookFiles  

How to do a lot of basic things with App Inventor are described here:  http://www.appinventor.org/content/howDoYou/eventHandling  .

Regards,
Steve



Taifun

unread,
Jul 11, 2017, 8:40:10 PM7/11/17
to MIT App Inventor Forum
you might be able to use Tasker to find out, if a call is coming in...
Taifun

Pavitra

unread,
Jul 12, 2017, 1:01:50 PM7/12/17
to MIT App Inventor Forum
An extension can be made to launch the app after an incoming call using Broadcast Receiver.

Shivendra Kr. Sahu

unread,
Jul 12, 2017, 5:32:58 PM7/12/17
to MIT App Inventor Forum
if possibly pl give me example .aia file .
pleas 
Reply all
Reply to author
Forward
0 new messages