会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
X-Bing
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2016年9月9日
Java socket 超时
摘要: socket编程 1.连接超时connect(socketAddresss,timeout) //这个超时是连接的时候超时,及tcp三次握手的超时 2.读超时socket的read操作是阻塞的,当serversocker奔溃或者异常关闭时,未通知客户端socket,所以该socket线程会一直阻塞,
阅读全文
posted @ 2016-09-09 09:52 x-bing
阅读(1311)
评论(0)
推荐(0)
2016年7月29日
Android 图片的压缩
摘要: /** * TODO filePath:图片路径 */public Bitmap compressToBitmap(String filePath) { final BitmapFactory.Options options = new BitmapFactory.Options(); option
阅读全文
posted @ 2016-07-29 09:13 x-bing
阅读(397)
评论(0)
推荐(0)
2016年7月13日
复习数据库相关知识
摘要: 前几天遇到的问题,app升级的时候,如果数据库结构有变化,该如何升级数据库? 首先我们来看看数据库的创建过程: 1、当我们在使用数据库时会调用getWritableDatabase()和getReadableDatabase()方法,而他们都调用了同一个方法getDatabaseLocked(fal
阅读全文
posted @ 2016-07-13 11:15 x-bing
阅读(208)
评论(0)
推荐(0)
2016年6月24日
activity 启动模式
摘要:
阅读全文
posted @ 2016-06-24 10:15 x-bing
阅读(92)
评论(0)
推荐(0)
2016年6月22日
android 隐藏输入法键盘
摘要: 1、 InputMethodManager imm = (InputMethodManager) getActivity() .getSystemService(Context.INPUT_METHOD_SERVICE); imm.toggleSoftInput(0, InputMethodMana
阅读全文
posted @ 2016-06-22 14:07 x-bing
阅读(256)
评论(0)
推荐(0)
2016年6月21日
ObjectAnimator ValueAnimator AnimatorSet基础
摘要: package com.xbing.com.viewdemo;import android.animation.AnimatorSet;import android.animation.ObjectAnimator;import android.animation.ValueAnimator;imp
阅读全文
posted @ 2016-06-21 10:55 x-bing
阅读(871)
评论(0)
推荐(0)
2016年6月17日
android Window Leaked异常的解决方法
摘要: 在两种情况下,我们会遇到这种问题: 1.当前activity关闭时,还有ProgressDialog在show() 这种情况只需要关闭即可 if (progressDialog != null && progressDialog.isShowing()){ progressDialog.dismis
阅读全文
posted @ 2016-06-17 17:22 x-bing
阅读(417)
评论(0)
推荐(0)
2016年6月15日
eclipse 和 android studio 互相导入项目乱码问题(65279)
摘要: 1.可以使用第三方文本编辑工具 notepad++,ue等 将文件格式转换 注意:android studio 默认使用的是UTF-8 无bom格式 ,所以不要只转换为UTF-8,依旧报错
阅读全文
posted @ 2016-06-15 15:17 x-bing
阅读(227)
评论(0)
推荐(0)
android .9制作
摘要:
阅读全文
posted @ 2016-06-15 15:09 x-bing
阅读(120)
评论(0)
推荐(0)
2016年5月6日
android studio 代码混淆
摘要: 1.配置build.gradle脚本中buildTypes节点 buildTypes { debug { debuggable true signingConfig signingConfigs.config } release { minifyEnabled true proguardFiles
阅读全文
posted @ 2016-05-06 10:59 x-bing
阅读(591)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告