摘要: 公司的sdk要做一个app下载功能。开始使用的安智的下载链接,程序一直运行正常。但是公司自己的服务器的时候,就报错了。因为要获取文件大小来做进度条,错误位置是在获取文件大小getContentLength()的时候返回-1.对比了一下请求的response,发现就是没有返回文件的ContentLength. 网上搜了一下,加入代码HttpURLConnection conn = (HttpURLConnection)url.openConnection();conn .setRequestProperty("Accept-Encoding", "identity& 阅读全文
posted @ 2013-11-21 21:39 aosting 阅读(5497) 评论(0) 推荐(0) 编辑
摘要: android NDK r9编译问题I put this in my Application.mk to solve the same problem.APP_CFLAGS += -Wno-error=format-security- See more at: http://www.cocos2d-x.org/forums/6/topics/32437?r=33260#message-33260Android NDK native methodhttp://stackoverflow.com/questions/14444776/android-ndk-native-method-not-fo 阅读全文
posted @ 2013-11-21 21:23 aosting 阅读(346) 评论(0) 推荐(0) 编辑