自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Widsom的博客

人的原动力来自对未来的美好憧憬

  • 博客(6)
  • 资源 (10)
  • 收藏
  • 关注

原创 Android应用图标上的小红点Badge实现

Android应用图标上的小红点Badge实现为了增加APP的日活,在Android中有许多的应用仿苹果的在应用图标上显示小红点。当然有着一些手机ROM对小红点的支持,比如小米,三星等。我们下面看下如何实现:MainActivity:public class MainActivity extends AppCompatActivity { private Handler handler =

2016-12-28 21:55:19 23363 4

原创 Android电量和插拔电源状态广播监听

Android电量和插拔电源状态广播监听Android电量广播状态有3种,电量低,电量充满,电量发生改变。 Action是:Intent.ACTION_BATTERY_CHANGEIntent.ACTION_BATTERY_LOWIntent.ACTION_BATTERY_OKAYAndroid的插拔电源广播的Action是:Intent.ACTION_POWER_CONNECTEDInte

2016-12-20 22:02:13 17680 2

原创 Android打开WLAN开关的广播状态监听

Android打开WLAN开关的广播状态监听Android中WLAN的广播监听的是WLAN状态的改变 ,Action是WifiManager.WIFI_STATE_CHANGED_ACTION,WLAN的状态系统定义了5种,分别是WIFI_STATE_DISABLED WLAN已经关闭WIFI_STATE_DISABLING WLAN正在关闭WIFI_STATE_ENABLED

2016-12-20 22:00:23 4426

原创 Android锁屏与解锁广播状态监听

Android锁屏与解锁广播监听在Android开发中经常会碰到锁屏和解锁的需求,这里封装一个ScreenListener统一管理广播的注册和反注册,同时设置锁屏和解锁的回调监听。代码如下:public class ScreenListener { private Context mContext; private ScreenBroadcastReceiver receiver;

2016-12-20 21:59:16 12062 3

原创 静态工厂与策略模式的比较

静态工厂模式与策略模式的比较静态工厂模式:一般采用if…else语句或switch语句通过条件判断,并返回结果。这样写起来是比较方便的,适用于不复杂的类,但是该模式耦合程度比较高。策略模式:通过由实现类实现行为接口,在操作类中切换不同实现类的行为。这样写起来比较解耦,但是会导致类增多。适用于行为比较复杂的类。接下来看下实例代码:静态工厂模式:public class DateUtils { p

2016-12-06 12:57:44 840

原创 比较器Comparable与Comparator实践

比较器Comparable与Comparator实践Comparable:该比较器是用于对象的内部比较,比较的是属性。它的方法: public int compareTo(T o);Comparator:该比较器用于对象的外部比较,比较的是对象,一般这个比较的对象也实现了Comparable接口。Comparator的方法有多个,但一般我们只需要实现:int compare(T o1, T o2);

2016-12-06 12:56:13 456

内存检测分析工具

内存分析工具

2017-06-19

Android逆向助手

android逆向助手,反编译工具

2017-06-19

GifCam录屏工具

录屏工具,保存的格式是GIF

2017-06-19

fiddler4抓包工具

Fiddler 4抓包工具

2017-06-19

commons-beanutils-1.8.3.jar

commons-beanutils-1.8.3.jar

2017-02-25

阿里巴巴Java开发手册 高清.pdf版

阿里巴巴Java开发手册,包含编程规约,异常日志,MySQL规约,工程规约,安全规约

2017-02-10

Bugly实现热更新Demo

使用bugly实现热更新

2017-02-07

Gradle Rescipes for Android

Gradle 官网资料

2016-11-15

Gradle for Android

About This Book, Create custom Gradle tasks and plugins for your Android projects, Configure different build variants, each with their own dependencies and properties, Manage multi-module projects, and integrate modules interdependently, Who This Book Is For, If you are an experienced Android developer wanting to enhance your skills with the Gradle Android build system, then this book is for you. As a prerequisite, you will need some knowledge of the concepts of Android application development., What You Will Learn, Build new Android apps and libraries using Android Studio and Gradle, Migrate projects from Eclipse to Android Studio and Gradle, Manage the local and remote dependencies of your projects, Create multiple build variants, Include multiple modules in a single project, Integrate tests into the build process, Create custom tasks and plugins for Android projects, In Detail, Gradle is an open source build automation system that introduces a Groovy-based domain-specific language (DSL) to configure projects. Using Gradle makes it easy for Android developers to manage dependencies and set up the entire build process., This book begins by taking you through the basics of Gradle and how it works with Android Studio. Furthermore, you will learn how to add local and remote dependencies to your project. You will work with build variants, such as debug and release, paid and free, and even combinations of these things. The book will also help you set up unit and integration testing with different libraries and will show how Gradle and Android Studio can make running tests easier. Finally, you will be shown a number of tips and tricks on the advanced customization of your application's build process. By the end of this book, you will be able to customize the entire build process, and create your own tasks and plugins for your Gradle builds.

2016-11-15

空空如也

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

TA关注的人

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