Code example for JsResult

Methods: confirm

0
            // This shows the dialog box.  This can be commented out for dev 
            AlertDialog.Builder alertBldr = new AlertDialog.Builder(mCtx);
            alertBldr.setMessage(message);
            alertBldr.setTitle("Alert");
            alertBldr.show();
            result.confirm();
            return true; 
        } 
    	 
 
    } 
     
    	    	 
    // This is required to start the camera activity!  It has to come from the previous activity 
    public void startCamera(int quality)
    { 
    	Intent i = new Intent(this, CameraPreview.class);
    	i.setAction("android.intent.action.PICK");
    	i.putExtra("quality", quality);
    	startActivityForResult(i, 0);
    }