这样的做法最普遍最简单:

1、新建一个android空项目;

2、在drawable文件夹下加入图标文件,如icon.png;在values文件夹下的strings.xml文件里添加名称。如websitename。

3、在配置文件AndroidManifest.xml中,添加链接的图标icon和名称websitename:

4、在MainActivity中编辑onCreate方法:

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		Uri uri = Uri.parse("http://blog.csdn.net/wanggsx918");  
		Intent it = new Intent(Intent.ACTION_VIEW, uri);  
		startActivity(it);
		finish();
	}

没错。就是这么简单。

假设想做得更好。就在应用中添加webview浏览器功能。

相关文章:

  • 2021-09-25
  • 2022-12-23
  • 2022-12-23
  • 2021-04-04
  • 2022-12-23
  • 2022-01-01
猜你喜欢
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2021-05-10
  • 2022-12-23
  • 2021-08-24
  • 2021-12-21
相关资源
相似解决方案