Code example for Vector

Methods: containssize

        // chooser (unless a capture parameter has been specified, in which case 
        // we'll try to satisfy that first. 
        // TODO(benm): Investigate having an Intent per accept type, and combining 
        // them together in the final chooser we send to the system. This should 
        // allow us to honor multiple accept types better. 
        return mFileTypes.size() != 1 || mFileTypes.contains(ANY_TYPES);
    public boolean shouldShowImageTypes() { 
        return noSpecificType() || mFileTypes.contains(IMAGE_TYPES);
    public boolean shouldShowVideoTypes() { 
        return noSpecificType() || mFileTypes.contains(VIDEO_TYPES);
    public boolean shouldShowAudioTypes() { 
        return noSpecificType() || mFileTypes.contains(AUDIO_TYPES);
    public boolean captureCamera() { 
        return shouldShowImageTypes() && mCapture != null && mCapture.startsWith(CAPTURE_CAMERA);
Stop searching for code, let great code find you!  Add Codota to your java IDE