- 博客(9)
- 资源 (2)
- 收藏
- 关注
原创 Android.mk中设置PROPERTIES属性
ifeq (true,$(strip $(enable_target_debugging))) # Target is more debuggable and adbd is on by default ADDITIONAL_DEFAULT_PROPERTIES += ro.debuggable=1 persist.service.adb.enable=1 # Include t
2014-08-30 15:43:07 2096
原创 android双击灭屏
1.android双击事件 // 计算点击的次数 private int count = 0; // 第一次点击的时间 long型 private long firstClick = 0; // 最后一次点击的时间 private long lastClick = 0; private ButtonOnTouchLi
2014-08-30 15:28:18 5777 1
转载 Android declare-styleable:自定义控件的属性(attr.xml,TypedArray)的使用
以launcher为例说明自定义控件的属性: 1、 在layout里面定义控件,如: xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.junction.launcher"
2014-08-26 10:57:04 738
转载 android 系统重启与关机:java 代码实现
在应用层如何通过代码实现 android 系统的重启,分享给大家。 这篇博客是在 android 系统开发的基础之上进行实践的,所以如果你是纯粹的 app 开发,可能要让你失望了。 该代码在真机上测试成功,在模拟器上面测试失败。 在 linux 下面,重启 pc,非 root 用户需要执行 sudo reboot,所以在 android 下重启机器也需要一定的权限。
2014-08-21 14:48:00 982
原创 如何修改CheckBoxPreference title字体
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo
2014-08-21 14:15:25 2576
原创 android多字体切换
一、 添加字库 1.把对应的字库文件拷贝到 frameworks/base/data/fonts 下 2.修改 fonts.mk (frameworks/base/data/fonts)
2014-08-21 13:43:52 3052
转载 android得到系统时间如何判断是白天还是晚上
ContentResolver cv = getBaseContext().getContentResolver(); String strTimeFormat = android.provider.Settings.System.getString(cv, android.provider.Settings.System.TIME_12_24); if(strTimeFormat!=null &
2014-08-07 16:12:21 4124
原创 UA
什么是User agent? User-Agent就是客户端浏览器等应用程序使用的一种特殊的网络协议,在每次浏览器(邮件客户端/搜索引擎蜘蛛)进行 HTTP 请求时发送到服务器,服务器就知道了用户是使用什么浏览器(邮件客户端/搜索引擎蜘蛛)来访问的。既然是人为规定的协议,那么就是说不管什么浏览器,默认的UA都是可以更改的。有时候为了达到一些不可告人的目的,我就经常需要更改一下UA的设置,比如伪装
2014-08-06 16:13:43 827 2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人