Search in sources :

Example 1 with AuthCheckTask

use of org.mazhuang.guanggoo.data.task.AuthCheckTask in project guanggoo-android by mzlogin.

the class SplashActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    NetworkTaskScheduler.getInstance().execute(new AuthCheckTask(new OnResponseListener<String>() {

        @Override
        public void onSucceed(String data) {
            startHome();
        }

        @Override
        public void onFailed(String msg) {
            startHome();
        }
    }));
}
Also used : OnResponseListener(org.mazhuang.guanggoo.data.OnResponseListener) AuthCheckTask(org.mazhuang.guanggoo.data.task.AuthCheckTask)

Aggregations

OnResponseListener (org.mazhuang.guanggoo.data.OnResponseListener)1 AuthCheckTask (org.mazhuang.guanggoo.data.task.AuthCheckTask)1