Skip to content

Instantly share code, notes, and snippets.

@marchy
Created January 13, 2015 16:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marchy/c0ea6ca11919bf0be59c to your computer and use it in GitHub Desktop.
Save marchy/c0ea6ca11919bf0be59c to your computer and use it in GitHub Desktop.
// 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