自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

polly的专栏

一切有为法皆如梦幻泡影,如露亦如电,应作如是观。

  • 博客(9)
  • 资源 (2)
  • 收藏
  • 关注

原创 makefile常用函数

strip :去空格函数 $(strip string)

2014-08-30 15:58:31 3615

原创 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

brew入门手机日历

brew入门学习的好程序。学习日历编程对于认识brew,深入brew开发是一个很好的帮助。

2010-07-12

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除