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);  
  • 相关阅读:
    HTTP协议详解
    ASP.NET 页生命周期概述
    两种典型的双工MEP
    ASP.NET并发处理
    Nodejs
    官方教程
    SQL server 版本
    MVC、MVP、MVVM
    SOHO 创业
    考证
  • 原文地址:https://www.cnblogs.com/lyz459/p/3605600.html
Copyright © 2011-2022 走看看