摘要: public class OutCallReceiver extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { String number = getResultD... 阅读全文
posted @ 2015-11-23 13:33 黑土白云 阅读(139) 评论(0) 推荐(0) 编辑
摘要: public class BootCompleteReceiver extends BroadcastReceiver { private static final String TAG = "BootCompleteReceiver"; @Override public void onReceiv... 阅读全文
posted @ 2015-11-23 13:32 黑土白云 阅读(212) 评论(0) 推荐(0) 编辑
摘要: public class GPSService extends Service { private LocationManager lm; private MyListener listener; private SharedPreferences sp; @Override public IBin... 阅读全文
posted @ 2015-11-23 13:29 黑土白云 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 第一种方式:public class FocusedTextView extends TextView { public FocusedTextView(Context context, AttributeSet attrs, int defStyle) { super(context, attr... 阅读全文
posted @ 2015-11-23 13:26 黑土白云 阅读(151) 评论(0) 推荐(0) 编辑
摘要: public class UpdateInfoParser { /** * 解析服务器返回的输入流 * * @param is * @return 更新信息 null解析失败 */ public static UpdateInfo getUpdateInfos(InputStream i... 阅读全文
posted @ 2015-11-23 13:23 黑土白云 阅读(305) 评论(0) 推荐(0) 编辑
摘要: public class UpdateInfoParser { /** * 解析服务器返回的输入流 * * @param is * @return 更新信息 null解析失败 */ public static UpdateInfo getUpdateInfos(InputStream i... 阅读全文
posted @ 2015-11-23 13:18 黑土白云 阅读(211) 评论(0) 推荐(0) 编辑
摘要: public class ContactInfoProvider { /** * 返回系统所有的联系人信息 * @param context * @return */ public static List getContactInfos(Context context) { // 1.查... 阅读全文
posted @ 2015-11-23 13:17 黑土白云 阅读(241) 评论(0) 推荐(0) 编辑
摘要: //1.定义一个手势识别器 private GestureDetector mGestureDetector;//2.初始化手势识别器 mGestureDetector = new GestureDetector(this, new GestureDetector.SimpleOnGestureL... 阅读全文
posted @ 2015-11-23 13:16 黑土白云 阅读(127) 评论(0) 推荐(0) 编辑
摘要: @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); // 拷贝... 阅读全文
posted @ 2015-11-23 13:12 黑土白云 阅读(227) 评论(0) 推荐(0) 编辑
摘要: public String geLocalVersion() { PackageManager pm = getPackageManager(); try { PackageInfo packInfo = pm.getPackageInfo(getPackageName(), 0); ... 阅读全文
posted @ 2015-11-23 13:11 黑土白云 阅读(134) 评论(0) 推荐(0) 编辑
摘要: /** *afinal框架多线程下载 安装apk */ protected void downLoadApk() { final ProgressDialog pd = new ProgressDialog(this); pd.setTitle("正在下载"); pd.setProgre... 阅读全文
posted @ 2015-11-23 13:08 黑土白云 阅读(144) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2015-11-23 12:59 黑土白云 阅读(0) 评论(0) 推荐(0) 编辑
摘要: MD5加密的本质就是把字符串的每个字节转化为int型再转化为对应的十六进制,然后存入StringBuilder中! 阅读全文
posted @ 2015-11-23 12:53 黑土白云 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 一.激活设备管理器账户,1.设置完成界面 按钮的点击事件 public void activeAdmin(View view) { Intent intent = new Intent(DevicePolicyManager.ACTION_ADD_DEVICE_ADMIN); Component... 阅读全文
posted @ 2015-11-23 12:49 黑土白云 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 在Myeclipse或Eclipse的选项中:可以在这个jsp上右键->Open with->Myeclipse JSP Editer。默认的是Myelicpse Visual JSP designer这个编辑器非常耗资源,还会出现CPU100%的问题。更彻底的解决方法是:General->Edit... 阅读全文
posted @ 2015-11-23 11:11 黑土白云 阅读(1008) 评论(0) 推荐(0) 编辑