tags:

views:

114

answers:

0

Hi,

i need to share data between a local service and his hosting activity, i`am using sendBroadcast in order to send data to the hosting activity from the service, but if i want to send data back to the service from the hosting activity?

so i though to create static method on the service, and call from the activity, and through it send the parameter, but then i cant do operations like toast inside that static method(which is inside the service)..

coz you cant use "myclass.this" inside a static method, i guess there r more limits..

mybe another solution? mybe there is a proper way for this task?

thanks,

moshik.