Code example for Spinner

Methods: getSelectedItemPosition

0
 
    @Override 
    public void onResume() { 
        super.onResume(); 
 
        setUpCamera(mCameraSpinner.getSelectedItemPosition());
    } 
 
    @Override 
    public void onPause() { 
        super.onPause(); 
 
        shutdownCamera(); 
    } 
 
    public void onSurfaceTextureAvailable(SurfaceTexture surface,
            int width, int height) {
        mPreviewTexture = surface;
        mPreviewTexWidth = width;
        mPreviewTexHeight = height;
        if (mCamera != null) {