Code example for Activity

Methods: startActivityForResult

0
			case HIGH: takeVideoIntent.putExtra(android.provider.MediaStore.EXTRA_VIDEO_QUALITY, 1);	 break;
		}			 
		takeVideoIntent.putExtra(android.provider.MediaStore.EXTRA_DURATION_LIMIT, durationInSeconds);
		//takeVideoIntent.putExtra(android.provider.MediaStore.EXTRA_OUTPUT, Uri.fromFile(file)); //Android crash 
		//takeVideoIntent.putExtra(android.provider.MediaStore.EXTRA_SIZE_LIMIT, maximumSize); //Size in KB. May be for future use 
		mActivity.startActivityForResult(takeVideoIntent,RESULT_VIDEO_CODE);	//Check for result in RhodesActivity	
	} 
 
	@Override 
	public void stop(IMethodResult result)
	{ 
		//Not supported 
		Logger.D(TAG,  "Stop API");		
		result.setError("Stop API not supported on Android");
	}	 
 
	@Override 
	public void cancel(IMethodResult result)
	{		 
		Logger.D(TAG,  "Cancel API");
		result.setError("Cancel API not supported on Android");