0

I'm developing an API for getting the currentlocation. So how can i connect to GoogleAPiCleint from my java class(it's not an activity)

In other words do i've to connect to GoogleApiClient from OnStart only(Callbacks)

Reddy
  • 79
  • 1
  • 8
  • You need a `Context` to receive location updates. So it's not possible without an Android component, IMHO. This is an example for a location `Service` http://stackoverflow.com/a/30775807/4033690 – momo Jun 11 '15 at 12:09
  • yeah thanks for the conformation momo – Reddy Jun 11 '15 at 13:15

0 Answers0