Thingse/app/src/main/java/com/daneshzaki/thingse/EditSomething.java
//call camera to take a pic 
call camera to take a pic
call camera to take a pic
public void callCamera(View v)
    {
    	Log.i("EditSomething", "Camera button clicked");
        Intent intent = new Intent(MediaStore.ACTION_IMAGE_CAPTURE);
		intent.putExtra(MediaStore.EXTRA_SCREEN_ORIENTATION, ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
		fileUri = getOutputMediaFileUri();
		picLocation = fileUri.toString();
		Log.i("EditSomething", "picLocation = " + picLocation);
		intent.putExtra(MediaStore.EXTRA_OUTPUT, fileUri);
		Crop.of(fileUri, fileUri).asSquare().start(this);
		compressFile(mediaFile);
        startActivityForResult(intent, CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE);
    }
public void callCamera ( View v ) { Log . i ( "EditSomething" , "Camera button clicked" ) ; Intent intent = new Intent ( MediaStore . ACTION_IMAGE_CAPTURE ) ; intent . putExtra ( MediaStore . EXTRA_SCREEN_ORIENTATION , ActivityInfo . SCREEN_ORIENTATION_PORTRAIT ) ; fileUri = getOutputMediaFileUri ( ) ; picLocation = fileUri . toString ( ) ; Log . i ( "EditSomething" , "picLocation = " + picLocation ) ; intent . putExtra ( MediaStore . EXTRA_OUTPUT , fileUri ) ; Crop . of ( fileUri , fileUri ) . asSquare ( ) . start ( this ) ; compressFile ( mediaFile ) ; startActivityForResult ( intent , CAPTURE_IMAGE_ACTIVITY_REQUEST_CODE ) ; }
call camera to take a pic
call camera to take a pic
// create Intent to take a picture and return control to the calling application //set camera orientation // create a file to save the image // set the image file name //crop the image //16 Sep 2015 - compress image // start the image capture Intent