-5

I've written an application which has multiple activities with multiple buttons. A colleague of mine wrote a service which detects gestures, based on the gyroscope sensor (move up, down, rotation...). We want to join the application and the service so we would be able to control the app using gestures from the service.

Since we both don't have so much experience with Android, we'd like to ask, how this is usually achieved?

TheAptKid
  • 1,559
  • 3
  • 25
  • 47
  • what was your effort?code?researches? Welcome to Stack Overflow! please read [how to ask](http://stackoverflow.com/questions/how-to-ask) – Maveňツ Jul 06 '15 at 13:02

1 Answers1

1

For the Service -> Activity communication you can use LocalBroadcastManager, check this SO answer: Android update activity UI from service

For the Activity -> Service communication you either start service and add extras to intent or have a bound service. Make sure you read this article: http://developer.android.com/guide/components/services.html

Community
  • 1
  • 1
mhenryk
  • 551
  • 5
  • 13