Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Moving all location API code inside a helper class #15

Closed
shubendrak opened this issue May 19, 2015 · 1 comment
Closed

Moving all location API code inside a helper class #15

shubendrak opened this issue May 19, 2015 · 1 comment

Comments

@shubendrak
Copy link

In all samples the location API code is written inside a activity. wouldn't it be better if we move all logic inside a helper class. This way any activity can request the location by calling a function defined in helper class.

@shubendrak shubendrak changed the title Moving all location API code in a helper class Moving all location API code inside a helper class May 19, 2015
@shailen
Copy link
Contributor

shailen commented Jun 23, 2015

This is a eminently reasonable idea. The code is organized the way it is to showcase very simple use cases for Location APIs. For a "real-world" app - even if it is very simple - the use of helper class or a library would indeed be the way to go. These samples are pedagogical in nature, hence the no-frills structuring of the code.

@shailen shailen closed this as completed Jun 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants