Code example for LocalSocketAddress

0
         
		try { Thread.sleep(1000); } catch (Exception e) {}
		 
		ls = new LocalSocket();
        try { 
			ls.connect(new LocalSocketAddress(SOCKET_ADDRESS));
		} catch (IOException e) {
			//stop(); 
		} 
        camera = Camera.open();
        
 
	} 
	 
    public void start() { 
    	if (prepareVideoRecorder()) { 
 
            mMediaRecorder.start();
            captureButton.setText("Stop");
            isRecording = true;
        } else {