1. Are you ready for the Galaxy S20? Here is everything we know so far!

Application that starts working during call

Discussion in 'Android Development' started by uaeHamed, May 25, 2011.

  1. uaeHamed

    uaeHamed Newbie
    Thread Starter

    Hi all,

    If I would like to have an application(background or active) to start working when an incoming or outgoing call is started, how do I go about that?
    I just need the basic idea no need for specifics(also it would be greatly appreciated). So basically does this application need to be a server that has a broadcast reciever or something?
     



    1. Download the Forums for Android™ app!


      Download

       
  2. miXer

    miXer Android Enthusiast

    It needs to be a service to be able to work in the background. And to start the service on incomming or outgoing calls, you can use broadcasts.
     
  3. uaeHamed

    uaeHamed Newbie
    Thread Starter

    So my service needs to catch the broadcast that informs all that a call is starting. Thanks!
     
  4. miXer

    miXer Android Enthusiast

    You can have a broadcast start the service via startService(), do the work and shut down the service.
     
Loading...

Share This Page

Loading...