会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
不要让昨天的沮丧 让今天的梦想黯然失色 成功的人总是修改方法而不修改目标
博客园
首页
新随笔
联系
订阅
管理
2015年12月29日
android 获取屏幕款高度
摘要: //获取屏幕的宽度public static int getScreenWidth(Context context) {WindowManager manager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);D...
阅读全文
posted @ 2015-12-29 12:04 蜗牛眼里的世界
阅读(154)
评论(0)
推荐(0)
2015年12月28日
service开机启动及自启(由于android权限的控制,可能有问题)
摘要: 1.在mainfest.xml中注册 2.设置监听(设置计时器,不定时去检查服务)public class BootBroadCast extends BroadcastReceiver { @Override public void onReceive(Context conte...
阅读全文
posted @ 2015-12-28 12:41 蜗牛眼里的世界
阅读(3138)
评论(0)
推荐(0)
2015年12月15日
数据库公共类,提供基本数据库操作
摘要: 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 蜗牛眼里的世界
阅读(675)
评论(0)
推荐(0)
Activity管理类:用于管理Activity和退出程序
摘要: 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 蜗牛眼里的世界
阅读(339)
评论(0)
推荐(0)
2015年12月10日
JsonHttpResponseHandler 工具
摘要: 请求处理基本类public class BaseResponseHandler extends JsonHttpResponseHandler { Context context; LoadingDialog loadingDialog; PullToRefreshListView listview...
阅读全文
posted @ 2015-12-10 18:21 蜗牛眼里的世界
阅读(512)
评论(0)
推荐(0)
动画大全
摘要:
阅读全文
posted @ 2015-12-10 12:00 蜗牛眼里的世界
阅读(128)
评论(0)
推荐(0)
httpclient
摘要: public class HttpClientUtils { private static String sessionId = null; private static AsyncHttpClient client = new AsyncHttpClient(); private...
阅读全文
posted @ 2015-12-10 11:32 蜗牛眼里的世界
阅读(236)
评论(0)
推荐(0)
2015年12月8日
textview设置下划线
摘要: textView.getPaint().setFlags(Paint. UNDERLINE_TEXT_FLAG ); //下划线 textView.getPaint().setAntiAlias(true);//抗锯齿 textView.getPaint(...
阅读全文
posted @ 2015-12-08 10:58 蜗牛眼里的世界
阅读(285)
评论(0)
推荐(0)
2015年11月30日
java验证工具
摘要: import java.util.regex.Pattern;/*** 校验器:利用正则表达式校验邮箱、手机号等* * @author liujiduo* */public class Validator {/*** 正则表达式:验证用户名*/public static final String R...
阅读全文
posted @ 2015-11-30 15:04 蜗牛眼里的世界
阅读(259)
评论(0)
推荐(0)
2015年11月26日
android 广播
摘要: 定义广播:class ReceiveBroadCast extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { // 得到广播中得到的数据,并显示出来 /...
阅读全文
posted @ 2015-11-26 10:35 蜗牛眼里的世界
阅读(141)
评论(0)
推荐(0)
下一页
公告