前端APP通過包名調用第三方程序

語言: CN / TW / HK
<body>
	<button id="mpr">打開儀表</button>
    <script type="text/javascript" charset="utf-8">
      	mui.init();
	mui.plusReady(function(){
		var btn = document.getElementById("mpr");
		btn.addEventListener("tap",function () {
			plus.runtime.launchApplication( {
				pname:"com.example.yf.opencvdemo",
				extra:{}
			}, 
			 function ( e ) {
				alert( "Open system default browser failed: " + e.message );
			} );			  
		});
	})
    </script>	
	
</body>