コード例 #1
0
 @Override
 protected void onActivityResult(int requestCode, int resultCode, Intent data) {
   // TODO Auto-generated method stub
   super.onActivityResult(requestCode, resultCode, data);
   if (requestCode == req_capture) {
     if (resultCode == Activity.RESULT_OK) {
       try {
         File f = new File(mCameraPicPath);
         if (f != null && f.exists() && f.isFile()) {
           ImageMgr.GetInstance().addImage(mCameraPicPath);
         }
       } catch (Exception e) {
         e.printStackTrace();
       }
     }
   }
 }
コード例 #2
0
 private void initData() {
   ImageMgr.GetInstance().addListener(this);
 }