Intent innerintent = new Intent (Intent. Action_get_content); Innerintent.putextra ("crop", "true"); //Clip box Innerintent.putextra ("Aspectx", 1); //Zoom in and Zoom out Innerintent.putextra ("aspectY", 1); // if Aspectx and the Aspect if Y is set to the same value at the same time, the rectangle Innerintent.settype ("image/*"); //view type detail type in Com.google.android.mms.ContentType tempfile=new File ("/sdcard/"+calendar.getinstance (). Gettimeinmillis () +". jpg" ); //In time seconds for file name File temp = new file ("/sdcard/"); //Directory Files folder, if it does not exist, create if (!temp.exists ()) { Temp.mkdir (); } Innerintent.putextra ("Output", Uri.fromfile (tempfile)); //Incoming target file Innerintent.putextra ("OutputFormat", "JPEG"); //File format Intent wrapperintent = Intent.createchooser (innerintent, "Select Picture First"); //Start and set the title Startactivityforresult (wrapperintent, 1); //Set return code to 1 with Onactivityresult |