自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(33)
  • 收藏
  • 关注

原创 线程池的使用

https://blog.csdn.net/u012702547/article/details/52259529

2018-04-10 18:07:15 130

原创 进程保活

https://mp.weixin.qq.com/s?__biz=MzAxMTI4MTkwNQ==&mid=2650824442&idx=1&sn=0f539be1620a2b7c27004ede7c988c1c&chksm=80b78a64b7c0037275d40a6aa52a4061f6247fbea9cdb3f58db59d484fe35671eda1e41...

2018-04-09 08:36:57 209

原创 遍历map

https://www.cnblogs.com/zhaoguhong/p/7074597.html?utm_source=itdadao&utm_medium=referral

2018-04-04 10:15:57 161

原创 单例模式

请移步 https://www.cnblogs.com/warmwei818/p/5350837.html volatile https://blog.csdn.net/weixin_37730482/article/details/72956942

2018-04-04 10:11:40 131

原创 Android 息屏 睡眠 线程挂载停止问题

PowerManager https://blog.csdn.net/u011414643/article/details/75408144AlarmManager https://blog.csdn.net/lhd201006/article/details/51220250

2018-04-04 08:25:43 3731

原创 适配

http://blog.csdn.net/weelyy/article/details/79284332 http://blog.csdn.net/c15522627353/article/details/52452490 http://blog.csdn.net/green_shing/article/details/51897383 http://blog.csdn.net/yangxi...

2018-03-15 09:15:29 145

原创 CardView

http://www.jcodecraeer.com/a/anzhuokaifa/androidkaifa/2015/1025/3621.html https://www.jianshu.com/p/ae9d654599efAndroid GradientDrawable(shape标签定义) 静态使用和动态使用(圆角,渐变实现) https://www.cnblogs.com/popfi...

2018-03-01 15:37:12 233

原创 Android 推送进程保活

https://www.jianshu.com/p/63aafe3c12af# http://blog.csdn.net/jhl122/article/details/53433594 https://www.jianshu.com/p/b7b9316c57cd https://www.jianshu.com/p/b16631a2fe3c http://pp1230.github.io/2...

2018-02-28 10:36:44 3937

原创 leecode-database 178. Rank Scores

leecode地址链接 https://leetcode.com/problems/rank-scores/description/Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, ...

2018-02-27 17:00:25 186

原创 反编译

http://blog.csdn.net/yanzi1225627/article/details/48215549apktool d hongbao.apk apktool b hongbao./d2j-dex2jar.sh /Users/yanzi/apk/hongbao.apk 查看hongbao-dex2jar.jar

2018-02-27 11:27:10 172

原创 leecode-database 177. Nth Highest Salary

leecode地址链接 https://leetcode.com/problems/nth-highest-salary/description/Write a SQL query to get the nth highest salary from the Employee table. 写SQL查询语句从Employee表中获取第N高的薪资+----+--------+| ...

2018-02-26 18:02:36 208

原创 leecode-database 176.Second Highest Salary

Write a SQL query to get the second highest salary from the Employee table. 编写SQL查询语句从Employee表中获得第二高的薪资+----+--------+| Id | Salary |+----+--------+| 1 | 100 || 2 | 200 || 3 | 300 ...

2018-02-24 14:29:46 162

原创 leecode-database 175. Combine Two Tables - Left Join

leecode地址链接 https://leetcode.com/problems/combine-two-tables/description/Table: Person 表:Person+-------------+---------+| Column Name | Type |+-------------+---------+| PersonId | int...

2018-02-24 10:49:03 174

原创 Mac 部署Apache

https://www.jianshu.com/p/d006a34a343f https://www.jianshu.com/p/90d5fa728861数据库Mysql安装 https://www.jianshu.com/p/fd3aae701db9 https://www.jianshu.com/p/cbf87ce6fa62 https://www.liaoxuefeng.com/...

2018-02-13 10:14:24 145

原创 AlertDialog中Button的大小

使用AlertDialog中使用PositiveButton,通常没有设置字体大小,正常情况下可以正常显示,但如果字体过多或者系统的字体变大的时候就会出现显示不全的情况,设置字体可表面这种情况,自动换行包裹内容AlertDialog alertDialog = builder.create();alertDialog.show();alertDialog.getButton(BUTTO

2018-01-22 16:22:08 1197 1

原创 Eclipse2Studio

https://www.jianshu.com/p/a0fd23afe39f http://blog.csdn.net/zgd826237710/article/details/51819587AndroidManifest.xml 文件中 删除重复的定位服务代码 如下service android:name="com.baidu.location.f" androi

2018-01-11 08:03:08 182

原创 web环境安装相关

https://segmentfault.com/a/1190000006178770 https://www.cnblogs.com/xuehaoyue/p/6410095.html http://www.jianshu.com/p/5adcee63c3b8 https://www.cnblogs.com/wuyinghong/p/6509520.html https://npm.taob

2017-11-10 15:02:41 164

原创 Android公司内网请求服务器偶尔超时现象

在一些高并发的 WebServer上,为了端口能够快速回收,打开了net.ipv4.tcp_tw_recycle,而在关闭 net.ipv4.tcp_tw_recycle的时候,kernal 是不会检查对端机器的包的时间戳的;打开了 tcp_tw_reccycle 了,就会检查时间戳,很不幸移动的cmwap发来的包的时间戳是乱跳的,所以服务器就把带了“倒退”的时间戳的包当作是“recycle的tw连

2017-09-11 15:07:02 969

原创 setImageBitmap 图片太大部分机型不显示

当图片太大太长时,setImageBitmap部分机型无效,需进行缩放Matrix matrix = new Matrix(); matrix.setScale(0.7f, 0.7f);bitmap = Bitmap.createBitmap( bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, false);代价是失真当b

2017-06-01 09:15:31 4401

原创 上传bintray

注册bintray,注意不要盲目注册首页醒目的绿色START YOUR FREE TRIAL,选择右侧暗淡无光的,否则之后会遇到找不到404,找不到repo等问题工程下的 build.gradle 文件添加 classpath 'com.novoda:bintray-release:0.3.4' Libraray Module下添加如下代码apply plugin: 'com.novoda.b

2017-05-24 08:15:54 325

原创 Gradle

这里写链接内容 这里写链接内容

2017-05-17 09:18:53 214

原创 Android Gradle文件下获取自定义properties文件,并且获取值或者修改值

记录 请教GcsSloop,感谢解惑 Android Gradle文件下获取自定义properties文件,并且获取值或者修改值 如下getui.properties 为自定义的properties文件,默认取当前Module下路径,若是在工程下寻找这样的文件路径rootProject.getRootDir().getAbsolutePath() + "/getui.properties"

2017-05-11 08:07:25 4529

原创 Suggestion: add 'tools:replace="android:label"'

Error:Execution failed for task ':xxx:processDebugAndroidTestManifest'.> Manifest merger failed : Attribute application@label value=(@string/app_name) from [debug] AndroidManifest.xml:13:9-50 is a

2017-05-04 09:07:18 6517

原创 android 桌面快捷方式

Intent pendingIntent = new Intent();pendingIntent.setAction(Intent.ACTION_VIEW);//切记不可用Intent.ACTION_MAINpendingIntent.setData(Uri.parse("http://www.baidu.com"));//实际项目总将http换位和后台协调好的

2017-04-28 17:27:43 724

原创 retrofit

Retrofit 不支持接口继承接口 eg: interface IBaseService {}interface IMyServiece extends BaseService {}然后调用create()方法报错retrofit.create(IMyServiece.class);后续补充动态构造Service

2017-03-27 16:27:14 238

原创 组件化Library形式的Module怎么使用BuildConfig的配置信息

跳坑主module对library module的依赖都是release依赖Error:(70, 33) 错误: 找不到符号符号: 变量 TEST位置: 类 BuildConfig

2017-03-27 15:00:00 5166

原创 XML error

Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class <unknown> 问题:界面渲染渲染失败 解决:找到对应的xml文件,点击右下角蓝色的details,弹出详细的问题,比如:java.lang.NumberFormatException: Attribute '?at

2017-03-27 14:48:31 812

原创 泛型

这里写链接内容

2017-03-23 18:14:05 400

原创 startActivityForResult在FragmentActivity和Fragment中的异同

startActivityForResult在FragmentActivity和Fragment中的异同1111

2017-03-22 15:29:20 488

原创 NavigationView item不响应点击事件

注意将NavigationView 控件放到最上层,否则会失去焦点。<?xml version="1.0" encoding="utf-8"?><android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas

2017-03-15 17:01:33 1314

原创 butterknife 8.5.1配置使用

butterknife github地址1、在整个项目 build.gradle 文件下做如下配置buildscript { repositories { mavenCentral() } dependencies { classpath 'com.jakewharton:butterknife-gradle-plugin:8.5.1' }}2、在当前module

2017-03-14 09:18:14 1797

原创 Git命令学习

本文参考廖雪峰网站学习 链接 1. git init:把当前目录编程Git可以管理的仓库,产生.git的文件 2. git add &amp;lt;file&amp;gt;:告诉git,把file文件添加到仓库,该命令可以反复多次使用,添加多个文件 3. git commit -m &quot;wrote a readme file&quot;:把文件提交到仓库,wrote a readme file为本次提交的备注说明 ...

2017-03-06 17:40:08 235

原创 React Native环境配置(Windows)

从今天起学习江清大神的RN系列技术文章http://www.lcode.org/,将学习过程中遇到的问题进行记录分享,IOS用户请移步 神殿 ,详细搭建过程参照这里。环境搭建步骤如下: 1. 安装JDK 2. 安装SDK 3. 安装Node 4. 安装Git 5. 安装react-native命令行工具react-native-cli 6. 创建RN项目 7. 运行Package 8

2017-03-01 09:48:51 423

空空如也

空空如也

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

TA关注的人

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