Using a built-in browser must be a way to refer to the source code (because resources such as layout files cannot be packaged in jars). The built-in browser is a normal activity that inherits from Baseactivity and is implemented using WebView.
1. Simply open the built-in browser
New Intent (This, browseractivity. Class); I.putextra ("url", "http://www.baidu.com/"); startactivity (i) ;
2. Set Browser theme
Intent i =NewIntent ( This, Browseractivity.class);//Initial Open URLI.putextra ("url", "http://www.baidu.com/");//Titleview, this view will replace the original titleI.putextra ("title_view_id", r.layout.view_browser_title_custom);//title Text TextView, you can control the content through the title fieldI.putextra ("title_text_id", r.id.tv_title);//title text, set in the above TextView, the stringI.putextra ("title", "Built-in browser");//return buttons id,imageview,title_text_id and title_back_id must be in View_browser_title_custom, otherwise invalidI.putextra ("title_back_id", R.id.ic_back); startactivity (i);
Open source Android Development Framework-------Powerframework use (iii) built-in browser browseractivity