Hello, I have a problem in quering User Service in Android.
Almost app user have no problem, but some tablet user have a problem.
A problem is 'appErrorCode 0' when quering User Service ( when user want to join member)
Full source is below.
-asynctask excute
mAuthTask = new UserJoinTask();
mAuthTask.execute((Void) null);
-in asynctask doInBackground..
userService.getUser(Id, new App42CallBack() {
@Override
public void onSuccess(Object o) {
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() { //if Id is already exists
Toast.makeText(getActivity(), "Id already exists. try another Id.", Toast.LENGTH_LONG).show();
idEdittext.requestFocus();
idEdittext.setText("");
}
});
}
@Override
public void onException(Exception ex) { //if id is not exists, so user can use Id to join
App42Exception Exception = (App42Exception)ex;
final int appErrorCode = Exception.getAppErrorCode();
if(appErrorCode == 2006 || appErrorCode == 2000){
makeUser_UserProfile_JSONbyID(userService);
}else{
getActivity().runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(getActivity(), "AppErrorCode: "+appErrorCode+" Error!", Toast.LENGTH_LONG).show(); //appErrorCode 0 occurs!!
}
});
}
}
});
the problem is appErrorCode 0 is occured in userService.getUser!
plz help me. thanks