public UserThrowPhotosPage(Fragment fragment, String userId) { super(fragment); mUserId = userId; mThrowPhotoAdapter = new ThrowPhotoAdapter(mContext); mThrowPhotoManager = ThrowPhotoManager.getInstance(mContext); // To get my throw photo mNowLoading = false; mBackgroundView = null; mHandler.sendEmptyMessage(MSG_GET_MY_THROW_PHOTOS); }
private void getMyThrowPhotos() { mNowLoading = true; mThrowPhotoManager.getUserThrowPhotos( mUserId, new ThrowPhotoManager.ThrowPhotoQueryObserver() { @Override public void onQueryResult(ThrowPhotoManager.ResultCode result, ThrowPhoto[] throwPhotos) { Message msg = mHandler.obtainMessage(MSG_HANDLE_GET_MY_THROW_PHOTOS, throwPhotos); mHandler.sendMessage(msg); } }); }