Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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);
         }
       });
 }