android 点击桌面图标,打开手机浏览器进入对应的站点
做一个假的adnroid app。要实现点击桌面图标。打开手机浏览器进入对应的站点,实现方法非常easy
import android.app.Activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Uri uri = Uri.parse("http://3g.6d32.com/"); Intent it = new Intent(Intent.ACTION_VIEW, uri); startActivity(it); finish(); } }