1

I am developing an android Application called Call recorder. The recording is done in background running service class. Now how can I received call info from service class to main activity class to show on UI ?

userx
  • 3,769
  • 1
  • 23
  • 33
CreAToR
  • 63
  • 10

3 Answers3

0

You can use an BroadcastReceiver and pass data...etc, here are some tutorials whit brodcastreceiver :

BrodcastReceiver link

Kanaiya Katarmal
  • 5,974
  • 4
  • 30
  • 56
0

There are multiple ways of communication based on requirement and scenario: You can communicate using:

Binder, Messanger, AIDL

Following link will give you details and ways of implementing them:

http://developer.android.com/guide/components/bound-services.html

You can also use custom broascast receiver for this purpose.

I think in your case you can use Binder..

Sushil
  • 8,250
  • 3
  • 39
  • 71
0
Pararth
  • 8,114
  • 4
  • 34
  • 51