Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Accessing methods of Android LocationManager, AlarmManger,... #5

Closed
papo2608 opened this issue Dec 16, 2014 · 1 comment
Closed

Accessing methods of Android LocationManager, AlarmManger,... #5

papo2608 opened this issue Dec 16, 2014 · 1 comment

Comments

@papo2608
Copy link

How do you access for example methods of the LocationManager or the AlarmManager? And where should they be located in your described architecture? Domain-, Data- or Presentation-Layer? In my opinion it should be placed in the Datalayer and accessed through an interface.

@android10
Copy link
Owner

You should have a use case first and then go across the different layers where the domain layer is in which you solve your problem, this means, where your business logic resides. Said that, the data layer is for data and it uses a repository pattern so you could you use it if that satisfy your needs, otherwise it might be a good idea to create something like a service layer for accessing to system services. Whichever approach you use, don't couple any framework stuff with your domain layer and do not go directly from your UI layer to the system services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants