[英]“opening” a website in android device
我只想在我的网站上执行php代码,该代码向文件中写入内容。 是否有用于android开发的简单解决方案?
假设您想通过Android手机触发服务器上某个php脚本的执行:
String url = "http://whatever.com/script.php?argument=value";
HttpClient client = new DefaultHttpClient();
try {
client.execute(new HttpGet(url));
} catch(IOException e) {
// something happened
}
尝试这个:
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.helllo.com"));
startActivity(browserIntent);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.