Skip to content

Instantly share code, notes, and snippets.

@yanguango
Created May 14, 2011 04:58
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 yanguango/971935 to your computer and use it in GitHub Desktop.
Save yanguango/971935 to your computer and use it in GitHub Desktop.
MyApplication mApplication = (MyApplication)getApplicationContext();
String username = mApplication.getUsername();
String password = mApplication.getPassword();
@pilkch
Copy link

pilkch commented May 25, 2011

Hey man, your getPassword function has a typo, the one in the class declaration of MyApplication is fine.

@yanguango
Copy link
Author

@pilkch thanks,man

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment