
android开发
cydenghua
这个作者很懒,什么都没留下…
展开
-
android程序建立socket失败
socket = new Socket("192.168.1.100", 9999); 用上面代码建立and原创 2014-04-30 20:54:43 · 3048 阅读 · 1 评论 -
android Socket通讯时readline阻塞
android编写了一个测试soket的例子, public void run() { try { while (true) { if (socket.isConnected()) { if (!socket.isInputShutdown()) { if (in != null) { if ((content =原创 2014-05-01 15:32:36 · 1995 阅读 · 0 评论 -
Android 安装apk过程中奔溃
最近在写一个自动升级代码的时候, 下载了apk后安装,在网上找了个代码: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW);//执行动作 intent.setDataAndType(Uri.fromFile(localFile), "application/vnd.android.package-archiv原创 2016-09-21 15:21:10 · 1368 阅读 · 1 评论