Closed szaske closed 6 years ago
SamplePresenter is coming from MVP pattern, you are right, normally I wouldn't use any architectural pattern in sample applications, but since I wanted to share same code between activity/fragment/service samples, I created the presenter.
In order to use the library, depend on where do you need to get location, you can either extend LocationBaseFragment, LocationBaseActivity or LocationBaseService implementations. If you don't want to extend, or you already have some other extensions, please take a look how they are implemented. You just need to call corresponding methods on LocationManager.
I appreciate you building this library, as there ARE a lot of steps involved to get a users GPS coordinates. However, I'm finding it difficult to follow your code samples.
I'd like to implement a Location Service. What is this SamplePresenter class? Do I need to implement it? I don't understand it's purpose. So to get your library working I need to:
I cannot really see where I get my callbacks in your Service-Activity sample.