第一、 新建监听类:BootReceiver继承BroadcastReceiver package com.rongfzh.yc; import andr…
public class ResizeLayout extends FrameLayout { private OnkeyboardShowListener mChangedLis…
/* 监听sim状态改变的广播,返回sim卡的状态, 有效或者无效。 双卡中只要有一张卡的状态有效即返回状态为有效,两张卡都无效则返回无效。 */ import android.a…
实现上述效果的代码如下: public class MainActivity extends Activity { @SuppressLint("InlinedApi&q…
单链表翻转比如有如下链表: 需要按照C B A 输出,我们可以有好几种方法: package org.an…
在Android开发过程中,我们可能需要获取View绘制前的高度或者宽度,一种的可能情形是我们初始化的时候让某个View是Visible = Gone的,当我们触发某个事件的时候需…
/** * 返回的 bitmap就是屏幕的内容 */ private static Bitmap takeScreenShot(Activity activity) { View …
使用Socket TCP/IP方式进行文件上传 代码: package com.example.androidseekuploadfile; import java.io.File…
程序猿是最懒的生物,开发中从不重复造轮子,实际开发中数据吃就化是必然要处理的一个问题,先总结了几个除处理sqlite外的几个工具类,因为sqlite可以直接用orm,持久化数据有I…
工作中用到的图片处理工具类,简单写下来,以便备用! public class BitmapUtils { /** * 图像背景圆角处理 * bitmap要处理的图片 roundPx…
import java.util.Stack; import android.app.Activity; import android.app.ActivityManager; i…
关于SQLite的ORM框架,目前有一些用得比较多的框架比如ORMlite,但是在公司做项目时由于公司的开源政策,对开源框架的检查流程非常繁琐, 需要一个专人投入半个月左右(不能忍…
Thank you for your sharing. I am worried that I lack creative ideas. It is your article that makes me full of hope. Thank you. But, I have a question, can you help me?
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Can you be more specific about the content of your article? After reading it, I still have some doubts. Hope you can help me.
Thanks for sharing. I read many of your blog posts, cool, your blog is very good.
Excellent blog here Also your website loads up very fast What web host are you using Can I get your affiliate link to your host I wish my web site loaded up as quickly as yours lol