Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to send continous data from serice to activity?

 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pramod P Deore
Ranch Hand
Posts: 632
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Anybody know how to pass data continuously from service to activity?
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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").
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic