- 博客(3)
- 资源 (7)
- 收藏
- 关注
原创 android中使用static、application、本地存取数据的问题
在android开发中,我们经常使用在类中使用static存取数据,但是这有一个很大的问题,就是static变量存取的数据经常被回收,不像JavaSE,可能android的虚拟机的设计有所不同。比如我们把登陆的信息存在static的变量中,然后就无缘无故就发生了NullPointerException异常,这就很可能我们的用户信息被回收,所以用static变量存取数据在android开发中有一个很
2015-05-31 16:25:31 4623 3
原创 Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor
Unable to instantiate fragment make sure class name exists, is public, and has an empty constructor that is public
2015-05-31 15:30:44 5167
原创 android使用inSampleSize、inScaled、inDensity、inTargetDensity对图片进行缩放
一般来说,在android中对图片进行缩放,我们使用以下的代码: public Bitmap resizeImage(Bitmap bitmap, int w, int h) { Bitmap BitmapOrg = bitmap; int width = BitmapOrg.getWidth(); int height = BitmapOrg.getHeight(); int
2015-05-04 23:27:46 7758 6
Android不规则图形点击提示选中不同区域的源码
2016-02-17
android使用Fragment实现底部菜单使用show()和hide()来切换以保持Fragment状态的源码
2016-01-27
SwipeRefreshLayout配合RecyclerView实现下拉刷新和上拉加载更多的Demo源码
2016-01-26
异常崩溃信息上报库ACRA(Application Crash Reports for Android)
2015-04-10
在android所有版本中显示overflow效果
2014-07-16
openfire开发
2014-07-13
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人