摘要: //获取屏幕的宽度public static int getScreenWidth(Context context) {WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);D... 阅读全文
posted @ 2015-12-29 12:04 蜗牛眼里的世界 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 1.在mainfest.xml中注册 2.设置监听(设置计时器,不定时去检查服务)public class BootBroadCast extends BroadcastReceiver { @Override public void onReceive(Context conte... 阅读全文
posted @ 2015-12-28 12:41 蜗牛眼里的世界 阅读(3087) 评论(0) 推荐(0) 编辑
摘要: package com.asc.db; import android.content.ContentValues; import android.content.Context; import android.database.Cursor; import android.databas... 阅读全文
posted @ 2015-12-15 16:58 蜗牛眼里的世界 阅读(670) 评论(0) 推荐(0) 编辑
摘要: import java.util.Stack; import android.app.Activity; import android.app.ActivityManager; import android.content.Context; /** * * @ClassName: com.qust.... 阅读全文
posted @ 2015-12-15 12:31 蜗牛眼里的世界 阅读(335) 评论(0) 推荐(0) 编辑
摘要: 请求处理基本类public class BaseResponseHandler extends JsonHttpResponseHandler { Context context; LoadingDialog loadingDialog; PullToRefreshListView listview... 阅读全文
posted @ 2015-12-10 18:21 蜗牛眼里的世界 阅读(509) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-12-10 12:00 蜗牛眼里的世界 阅读(125) 评论(0) 推荐(0) 编辑
摘要: public class HttpClientUtils { private static String sessionId = null; private static AsyncHttpClient client = new AsyncHttpClient(); private... 阅读全文
posted @ 2015-12-10 11:32 蜗牛眼里的世界 阅读(233) 评论(0) 推荐(0) 编辑
摘要: textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线 textView.getPaint().setAntiAlias(true);//抗锯齿 textView.getPaint(... 阅读全文
posted @ 2015-12-08 10:58 蜗牛眼里的世界 阅读(268) 评论(0) 推荐(0) 编辑
摘要: import java.util.regex.Pattern;/*** 校验器:利用正则表达式校验邮箱、手机号等* * @author liujiduo* */public class Validator {/*** 正则表达式:验证用户名*/public static final String R... 阅读全文
posted @ 2015-11-30 15:04 蜗牛眼里的世界 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 定义广播:class ReceiveBroadCast extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // 得到广播中得到的数据,并显示出来 /... 阅读全文
posted @ 2015-11-26 10:35 蜗牛眼里的世界 阅读(137) 评论(0) 推荐(0) 编辑