Back to project page cheepcheep.
The source code is released under:
Apache License
If you think the Android project cheepcheep listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.tarrio.cheepcheep.task; //www .jav a2s . c om import org.tarrio.cheepcheep.R; import org.tarrio.cheepcheep.exceptions.AuthError; import org.tarrio.cheepcheep.exceptions.NetError; import org.tarrio.cheepcheep.exceptions.ParseError; import org.tarrio.cheepcheep.exceptions.TweetNotFoundError; import org.tarrio.cheepcheep.exceptions.UserNotFoundError; import org.tarrio.cheepcheep.model.Preferences; import org.tarrio.cheepcheep.model.User; import android.app.Activity; public class VerifyCredentialsTask extends AsyncTwitterTask { public VerifyCredentialsTask(Activity activity, Preferences prefs, TaskCallback successCallback) { super(activity, prefs, successCallback); } private User user; public User getUser() { return user; } @Override protected int getProgressMessageResource() { return R.string.loading_user_info; } @Override protected void doBackground() throws UserNotFoundError, TweetNotFoundError, NetError, ParseError, AuthError { user = twitterService.verifyCredentials(); } }