aspose file tools*
The moose likes Android and the fly likes How to send continous data from serice to activity? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "How to send continous data from serice to activity?" Watch "How to send continous data from serice to activity?" New topic
Author

How to send continous data from serice to activity?

Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Hi all, In my application I am getting continuous data through socket. This socket code I had written in service. Now I want to transfer this data to activity every time. How to transfer data from service to activity continuously?

Thanks in advance


Life is easy because we write the source code.....
Pramod P Deore
Ranch Hand

Joined: Jul 15, 2008
Posts: 629

Anybody know how to pass data continuously from service to activity?
Hauke Ingmar Schmidt
Rancher

Joined: Nov 18, 2008
Posts: 433
    
    2
You would define your service via AIDL, expose it in the manifest and bind to it in the Activity. No magic, but not two lines.

You can read more about it here in the Javadocs but I would recommend a good book as a guide (e.g. "Android in Action").
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send continous data from serice to activity?