You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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
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.
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.
The text was updated successfully, but these errors were encountered: