-
-
Save naoyamakino/1dd11086b57486b95b17 to your computer and use it in GitHub Desktop.
Showing the terrible practice of having a static reference to a context
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
public class MainActivity extends LocationManagingActivity implements ActionBar.OnNavigationListener, | |
GooglePlayServicesClient.ConnectionCallbacks, | |
GooglePlayServicesClient.OnConnectionFailedListener { | |
//... | |
private static MeTrackerStore mMeTrackerStore; | |
//... | |
@Override | |
protected void onCreate(Bundle savedInstanceState) { | |
//... | |
mMeTrackerStore = new MeTrackerStore(this); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment