Created
January 13, 2015 16:36
-
-
Save marchy/c0ea6ca11919bf0be59c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// resolve system services | |
SharedPreferences sharedPreferences = context.getSharedPreferences( "Foodo", Context.MODE_PRIVATE ); | |
// create app services | |
LocationService locationService = new LocationService( context ); | |
AccountService accountService = new AccountService( sharedPreferences ); | |
ServiceLocator.registerLocationService( locationService ); | |
ServiceLocator.registerAccountService( accountService ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment