zoukankan      html  css  js  c++  java
  • 打开链接

    打开链接

    1.         Intent it = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.baidu.com"));  
    2.         it.setClassName("com.android.browser""com.android.browser.BrowserActivity");  
    3.         getContext().startActivity(it);  

    打开本地网页

     

    1. Intent intent=new Intent();   
    2. intent.setAction("android.intent.action.VIEW");   
    3. Uri CONTENT_URI_BROWSERS = Uri.parse("content://com.android.htmlfileprovider/sdcard/123.html");   
    4. intent.setData(CONTENT_URI_BROWSERS);   
    5. intent.setClassName("com.android.browser""com.android.browser.BrowserActivity");   
    6. startActivity(intent);  
  • 相关阅读:
    第九周总结
    第八周总结
    第六周
    中国历史上成功的两个人
    第五周总结
    第四周总结
    关于IT行业的抄袭事件
    第三周总结
    第二周总结
    第九周
  • 原文地址:https://www.cnblogs.com/lyz459/p/3605600.html
Copyright © 2011-2022 走看看