android URL中包含中文下载时出现问题 看看这个,应该对你有帮助。http://blog.csdn.net/wanglj0925/article/details/8508919 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 报错信息: java.io.FileNotFoundException: http://192.168.1.100:8080/MP3/梦想启动.mp3搂住你确定没有中文的时候程序可以正常运行? 我在查询、保存时也出现类似问题,你需要用post提交,下面代码希望对你有用: HttpPost httpRequest = new HttpPost(url); httpRequest.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8)); HttpResponse httpResponse = new DefaultHttpClient().execute(httpRequest); if(httpResponse.getStatusLine().getStatusCode() == 200) { String strResult = EntityUtils.toString(httpResponse.getEntity()); } java.lang.NullPointerException 你换成英文的可以吗,估计和中文没什么关系 对 “梦想启动.mp3” 截取,进行UTF-8编码,然后连接访问 android AIDL项目的服务端项目代码中没有客户端项目代码中的aidl文件 Andriod如何监听其他应用程序启动、退出呢? 如何判断栈里是否存在一个activity??大牛来帮我啊 计算机远程控制手机(非恶意程序) android中实现收藏夹功能,在线等 如何杀死占用端口的进程 eclipse有没有工具分析继承关系? android 蓝牙耳机 为什么我做的Widget窗口小部件里面没有??? Android studio 运行报错 有关EditText中设置inputType后minLines属性无效的问题 崩溃了,安卓环境怎么都搭建不成功!!!!
搂住你确定没有中文的时候程序可以正常运行?
HttpPost httpRequest = new HttpPost(url);
httpRequest.setEntity(new UrlEncodedFormEntity(params, HTTP.UTF_8));
HttpResponse httpResponse = new DefaultHttpClient().execute(httpRequest);
if(httpResponse.getStatusLine().getStatusCode() == 200)
{
String strResult = EntityUtils.toString(httpResponse.getEntity());
}