会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
千彧
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
40
下一页
2018年11月29日
关于Fragment的onActivityResult 不执行
摘要: 1、getActivity().startActivityForResult(); 与 fragment.startActivityForActivity(); getActivity().startActivityForResult()是使用Activity来启动Activity,与fragmen
阅读全文
posted @ 2018-11-29 18:16 千彧
阅读(680)
评论(0)
推荐(0)
2018年11月27日
有关Option.inSamplSize 和 Compress 图片压缩
摘要: 1、图片占用内存:占用的内存 = 图片长度 * 图片宽度 * 单位像素占用的字节数 注: 图片长度和图片宽度就是图片在行列上的像素数量。 图片格式: ALPHA_8:表示8位Alpha位图,即A=8,一个像素点占用1个字节,它没有颜色,只有透明度 ARGB_4444:表示16位ARGB位图,即A=4
阅读全文
posted @ 2018-11-27 17:52 千彧
阅读(452)
评论(0)
推荐(0)
2018年11月26日
Android App 启动 Activity 创建解析
摘要: 继承实现类关系: ActivityThread thread = new ActivityThread(); Context->ContextImpl ContextImpl context = new ContextImpl(null, mainThread, packageInfo, activ
阅读全文
posted @ 2018-11-26 10:34 千彧
阅读(211)
评论(0)
推荐(0)
2018年11月15日
(转)windows一台电脑添加多个git账号
摘要: 版权声明:技术总结来自互联网,书籍,以及工作积累。如果觉得我的总结有帮助,欢迎分享。 https://blog.csdn.net/qq1332479771/article/details/70149616 版权声明:技术总结来自互联网,书籍,以及工作积累。如果觉得我的总结有帮助,欢迎分享。 http
阅读全文
posted @ 2018-11-15 19:40 千彧
阅读(278)
评论(0)
推荐(0)
2018年11月8日
Handler向子线程发送数据
摘要: 日志输出:
阅读全文
posted @ 2018-11-08 14:34 千彧
阅读(227)
评论(0)
推荐(0)
2018年10月24日
Android Touch事件分发
摘要: 跟touch事件相关的3个方法: public boolean dispatchTouchEvent(MotionEvent ev); //用来分派event public boolean onInterceptTouchEvent(MotionEvent ev); //用来拦截event publ
阅读全文
posted @ 2018-10-24 11:43 千彧
阅读(279)
评论(0)
推荐(0)
2018年10月12日
int 转十六进制
摘要: //使用1字节就可以表示bpublic static String numToHex8(int b) { return String.format("%02x", b);//2表示需要两个16进行数 }//需要使用2字节表示bpublic static String numToHex16(int b
阅读全文
posted @ 2018-10-12 16:56 千彧
阅读(3106)
评论(0)
推荐(0)
2018年8月29日
JVM client模式和Server模式
摘要: 我们把jdk安装完成后,在命名行输入java -version 不仅可以看到jdk版本相关信息,还会看到类似与 Java HotSpot(TM) 64-Bit Server VM (build 25.31-b07, mixed mode) 这样的信息。 其中有个Server VM (build 25
阅读全文
posted @ 2018-08-29 13:40 千彧
阅读(300)
评论(0)
推荐(0)
2018年8月27日
Process 'command 'D:\AndroidSDK\ndk-bundle\ndk-build.cmd'' finished with non-zero exit value 2
摘要: 解决方法: 如果还运行不了,在当前model的build.gradle下添加。 android{ ………… sourceSets.main { jni.srcDirs = [] } } android{ ………… sourceSets.main { jni.srcDirs = [] } }
阅读全文
posted @ 2018-08-27 16:47 千彧
阅读(2124)
评论(0)
推荐(0)
2018年8月13日
Could not find com.android.tools.lint:lint-gradle:26.1.2.
摘要: allprojects { repositories { flatDir { dirs 'libs' } jcenter() google() }}
阅读全文
posted @ 2018-08-13 11:07 千彧
阅读(3255)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
40
下一页
公告