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 ?
Asked
Active
Viewed 931 times
1
-
you should consider selecting an answer for this question – Sam Jun 30 '14 at 23:00
3 Answers
0
You can use an BroadcastReceiver and pass data...etc, here are some tutorials whit brodcastreceiver :

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
Use a messenger to send the Message from the Service on onHandleIntent() method
Receive it with a handler
http://www.vogella.com/articles/AndroidServices/article.html

Pararth
- 8,114
- 4
- 34
- 51