Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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").
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to send continous data from serice to activity?
 
Similar Threads
soap messages using sockets
Design error in my app?
name of file
Socket - I/O Activity
establish SSL socket connection