Ejemplo n.º 1
0
 public CMSRequestData() {
   super();
   app_version = SystemUtil.getAppVersion(ContactsApp.getInstance());
   device = SystemUtil.getMachine();
   location =
       LBSManager.getInstance().getLatitude() + "," + LBSManager.getInstance().getLongitude();
   city = LBSManager.getInstance().getCity();
   device_no = getDev_no();
   sys_version = SystemUtil.getOS();
   sign = MD5.toMD5(getDevice() + getTimestamp() + SECRITY);
   // 账号登陆模块还没写,先放在这里
   // pt_token
 }
 /** 相机拍摄图片作为头像 void */
 protected void takePictureByCamera() {
   // 没有sd卡,直接返回
   if (!SystemUtil.hasSdcard()) {
     return;
   }
   Intent intentByCapture = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
   intentByCapture.putExtra(MediaStore.EXTRA_OUTPUT, mHeadIconUri);
   startActivityForResult(intentByCapture, CODE_CAMERA_REQUEST);
 }