最新消息: USBMI致力于为网友们分享Windows、安卓、IOS等主流手机系统相关的资讯以及评测、同时提供相关教程、应用、软件下载等服务。

Intent调用手机指定浏览器打开网页

业界 admin 1浏览 0评论

      Intent intent = this.getViewWebIntent(); 
      // intent.setPackage(String); 
      this.printInterestedActivitiesByIntent(intent); 
       // set the className to use the specific browser to open the webpage. 
       intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); 
       startActivity(intent); 
   } 
 
 
   /*
    *get the desired view web intent 
    */ 

      Intent intent = this.getViewWebIntent(); 
      // intent.setPackage(String); 
      this.printInterestedActivitiesByIntent(intent); 
       // set the className to use the specific browser to open the webpage. 
       intent.setClassName("com.android.browser", "com.android.browser.BrowserActivity"); 
       startActivity(intent); 
   } 
 
 
   /*
    *get the desired view web intent 
    */ 
发布评论

评论列表 (0)

  1. 暂无评论