Code example for JsResult

Methods: confirm

0
    	i.setAction("android.intent.action.PICK");
    	i.putExtra("quality", quality);
    	startActivityForResult(i, 0);
    } 
     
    protected void onActivityResult(int requestCode, int resultCode, Intent intent)
    { 
    	String data;
    	super.onActivityResult(requestCode, resultCode, intent);
    	if (resultCode == RESULT_OK)
    	{ 
    		data = intent.getStringExtra("picture");    	     
    		// Send the graphic back to the class that needs it 
    		launcher.processPicture(data);
    	} 
    	else 
    	{ 
    		launcher.failPicture("Did not complete!");
    	} 
    }