我想通过webview加载一个uri来打开本地一个程序  类似于androidet 那样的 有没有人知道 谢谢了。

解决方案 »

  1.   

    可以啊
    void  onLoadResource(WebView view, String url) 
    Notify the host application that the WebView will load the resource specified by the given url. 
    void  onPageFinished(WebView view, String url) 
    Notify the host application that a page has finished loading. 
    void  onPageStarted(WebView view, String url, Bitmap favicon) 
    Notify the host application that a page has started loading. 首先让WebView.setWebViewClient()在实现的WebViewClient类的上面三个覆写方法中的onPageStarted方法中调用本地程序
      

  2.   

    不是这个意思 是通过testhello://android.zhoujl.hundsun.com 这样一个uri直接就启动我的程序 不用再在webview里面处理了 跟twitter啥的一样 一个uri就搞定
      

  3.   

    还有androidet 也是这种效果 一个特定的uri然后就可以启动手机上的应用
      

  4.   

    我晕,绕了这么大的弯,这个前提是你要暴露程序的intent,这个我不会
      

  5.   

    http://topic.csdn.net/u/20110106/10/415724e8-945d-449d-8a8c-0860c3de2608.html
    已经解决了
      

  6.   

    目前采用ncuboy045wsq兄的建议在程序里面开启这个程序 谢谢楼上两位仁兄 结账 。顺便祝大家圣诞快乐!!!!