Exemplo n.º 1
0
  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    super.onActivityResult(requestCode, resultCode, data);
    if (resultCode == Activity.RESULT_OK) {
      switch (requestCode) {
        case 1:
          String files = CacheUtils.getCacheDirectory(mContext, true, "icon") + dateTime;
          File file = new File(files);
          if (file.exists() && file.length() > 0) {
            Uri uri = Uri.fromFile(file);
          } else {

          }
          break;
        case 2:
          if (data == null) {
            return;
          }
          break;
        default:
          break;
      }
    }
  }
Exemplo n.º 2
0
 @Override
 public void onAttach(Activity activity) {
   // TODO Auto-generated method stub
   super.onAttach(activity);
   try {
     //			mIProgressControllor = (IProgressControllor)activity;
   } catch (ClassCastException e) {
     e.printStackTrace();
   }
 }