File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
Register / Login
JavaRanch » Java Forums » Mobile » Android
Reply 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: 623

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: 623

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

Joined: Nov 18, 2008
Posts: 370
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").
 
 
subject: How to send continous data from serice to activity?
 
Threads others viewed
Socket - I/O Activity
Design error in my app?
establish SSL socket connection
soap messages using sockets
name of file
IntelliJ Java IDE

cast iron skillet 49er

more from paul wheaton's glorious empire of web junk: cast iron skillet diatomaceous earth rocket mass heater sepp holzer raised garden beds raising chickens lawn care CFL flea control missoula heat permaculture