1

public DoubanService getAuthDgubanService<) {

DoubanService rnyService new DoubanService("subAppiication", DoubanUt i 1. apiKey, DoubanUt.il. secret, false); SharedPreterences settings = getSharedPreferences{ PreferencesUti1.preferencesDouban, 0);

String acessToken = settings.getString(PreferencesUti1.acessToken, "false");

String acessTokenSecret settings.getString( PreferencesUtii.acessTokenSecret, "false");

myService.setAccessToken(acessToken, acessTokenSecret);

return myService;

• jS^ Activity ^ ifeSJfe&aT //Vi getAuthDoubanService. -

tX/iffft DoubanService, ffiiiS^h DoubanService APK

^wft—Android mtmmtt} web2.o wtt^aw« r-o mn&^m f-mum

T wlMM API, W&ft Android API WH»W«ir£2L. mifr&^m f-^V

ffiffJlli^-JT OAuthiAiiH, iiift—«'^«»fiWW.uE. *«A-«»Wcb2.0WWtt.

0 0

Post a comment