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

Already on GitHub? Sign in to your account

Add getToken and getSecret #11

merged 1 commit into from Apr 4, 2012


None yet
2 participants

robisaks commented Feb 13, 2012

For retrieval of secret and token from outside of the class.

@robisaks robisaks commented on the diff Feb 13, 2012

@@ -146,7 +146,12 @@ private String fetchToken(String key){
private void storeToken(String key1, String token1, String key2, String token2){
PreferenceManager.getDefaultSharedPreferences(act).edit().putString(key1, token1).putString(key2, token2).commit();
+ public String getToken(){
+ return this.token;

robisaks Feb 13, 2012


This can be accomplished by grabbing the token out of the preferences file, but I believe it makes sense for the method to be native to aQuery.


androidquery commented Feb 18, 2012

The getToken way might not work because it could be null.

Try this:

androidquery added a commit that referenced this pull request Apr 4, 2012

Merge pull request #11 from robisaks/patch-1
Add getToken and getSecret

@androidquery androidquery merged commit 860a860 into androidquery:master Apr 4, 2012

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