我使用以下代码从Android Internet Brownser从网页启动我的Android应用程序:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
</HEAD>
<BODY">
<form id="userform" method="POST" action="myaction" onsubmit="btngra.disabled = true; return true;">
<input type="hidden" id="buttonlaunch" class="boton" value=" Go " onClick="window.location.replace('myapp://whatever');">
<input type="submit" class="boton" name="btngra" id="btngra" value=" Grabar ">
</form>
<script type="text/javascript" language="JavaScript">
document.getElementById('buttonlaunch').click();
</script>
</BODY>
</HTML>
问题是从Android 6开始停止工作。看起来“window.location.replace”不接受APP的URL。现在有人如何让它在Android 6中运行?
提前致谢,
伊凡。