• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can i use a BroadcastReceiver or Service to retrieve an Incoming call

 
Christian Chabtini
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to fist detect an incoming call with all the info and then retrieve the audio at will

For instance, if the user received a call, i would like to obtain the phone number and a timestamp then i would get the audio and do some parsing in order to achieve a speech-to-text system.
I would like to accomplish that while the user is on the phone.
I need the service or BroadcastReceiver to be active while the user is on the phone and sends the audio back to the server...

I read somewhere that i should do this by creating a service in the backgound? is that possible to do? or BroadcastReceiver is the way to go ?
Are any of my suggested approaches would work for such project ?
I am still new to ANDROID so please provide as many details as possible.

Your Help is greatly appreciated.
 
Michael Rivera
Ranch Hand
Posts: 131
Android Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
BroadcastReceiver is the one to use - since it is a listener for Intent calls that might happen in your device
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic