- 博客(18)
- 资源 (4)
- 收藏
- 关注
原创 Android编译报错:Exception while processing task proguard.ParseException aapt_rules.txt
错误提示:Warning: Exception while processing task java.io.IOException: proguard.ParseException: Expecting class member name before '@' in line 3748 of file '/xxxx/xxx/xxx/xxxx/build/intermediates/progua...
2020-03-06 11:51:48
805
转载 virtualbox下最小化安装centos7后上网设置 不能上网
转自:http://www.cnblogs.com/hwd-cnblogs/p/4003607.html文件 /etc/sysconfig/network-scripts/ifcfg-enp0s3 将 ONBOOT=no 改为 ONBOOT=yes保存后重启网卡: service network restart此时就可以上网了。因为是最小化安装,此时ifconfig命令不能
2015-11-15 13:38:20
583
原创 Android 内存使用分析 Investigating Your RAM Usage
源地址:http://developer.android.com/tools/debugging/debugging-memory.htmlBecause Android is designed for mobile devices, you should always be careful about how much random-access memory (RAM) your app use
2015-08-06 16:42:36
825
原创 Android lint优化 Improving Your Code with lint
源地址:http://developer.android.com/tools/debugging/improving-w-lint.htmlIn addition to testing that your Android application meets its functional requirements, it’s important to ensure that your code has
2015-08-06 16:16:55
638
原创 Android如何避免ANR 增加相应速度 Keeping Your App Responsive
源地址:http://developer.android.com/training/articles/perf-anr.htmlWhat Triggers ANR?How to Avoid ANRsReinforcing ResponsivenessFigure 1. An ANR dialog displayed to the user.It’s possible to write code
2015-08-06 14:50:04
434
原创 Android性能优化建议 Performance Tips
Avoid Creating Unnecessary ObjectsPrefer Static Over VirtualUse Static Final For ConstantsAvoid Internal Getters/SettersUse Enhanced For Loop SyntaxConsider Package Instead of Private Access with
2015-08-06 14:35:52
706
原创 android RelativeLayout注意
最近在写代码时,偶然发现发现RelativeLayout 的setGravity并不是完全按照预想的设置进行展示,所以有一点纠结,刚开始以为是写的有问题,后来进行了一些测试发现,这个Gravity属性的确存在一些问题.测试1:<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:to
2015-08-06 11:07:53
401
转载 Android应用内存分析参考值
转自:http://blog.youkuaiyun.com/wirelessqa/article/details/29187517总结:在取内存数据前可以前判断一下手机是否root, 如果root了取USS比较好一些,如果没有root取PSS也是可以的。Android内存限制java虚拟机有内存使用上限的限制adb shell进入手机,这此参数被纪录
2015-04-15 13:56:26
471
转载 Android内存阀值修改--内存回收机制配置
转自:http://blog.youkuaiyun.com/fancsxx/article/details/8548810Android采取了一种有别于Linux的进程管理策略,有别于Linux的在进程活动停止后就结束该进程,Android把这些进程都保留在内存中, 直到系统需要更多内存为止。这些保留在内存中的进程通常情况下不会影响整体系统的运行速度,并且当用户再次激活这些进程时,提升了进程的启动
2015-03-31 17:32:30
1693
原创 android进阶篇二 Android硬件加速详解 Hardware Acceleration
文档地址:http://developer.android.com/guide/topics/graphics/hardware-accel.html工作太忙没时间翻译,贴出来方便不能翻墙的同学查阅See alsoOpenGL with the Framework APIsRenderscriptBeginning in Android 3.0 (A
2015-03-31 16:49:17
4853
原创 android进阶篇一、Bitmap内存管理及各版本区别
对于android内存管理上,最重要的还是Bitmap内存的使用,以前对于Bitmap的内存总是一知半解状态,只是知道需要调用recyle()最安全。今天对于内存的管理做一个总结。 Android内存回收机制 在Android2.2(API 8)以及更低的版本中,当发生垃圾回收时,你的应用线程会停止。这会导致延迟,使得性能降低。Android2.3添加了并发垃圾
2015-03-07 20:56:14
597
原创 android TextView setSingleLinexia显示问题
问题: 遇到一个很奇怪的问题,我用一个GridView显示n个TextView ,当TextView设置为singleLine时, GridView的某几个Item会概率出现不显示的问题。 解决方式: 取消singleLine 临时用setline(1)来代替,还没有详细研究其中的道理,有时间会好好研究一下。
2014-11-27 17:38:08
511
转载 图文详解Dalvik虚拟机
比较详细介绍http://blog.youkuaiyun.com/tangcheng_ok/article/details/7681892
2014-09-05 16:24:02
572
转载 Android通过tcpdump抓包
1. 手机要有root权限2. 下载tcpdump http://www.strazzere.com/android/tcpdump3. adb push c:\wherever_you_put\tcpdump /data/local/tcpdump4. adb shell chmod 6755 /data/local/tcpdump5, adb shell,
2014-09-05 13:00:18
345
转载 Android内存分析总结
Android内存分析总结看看新闻网>看引擎>开源产品4人收藏此文章,发表于2小时前(2013-10-22 23:12) ,已有19次阅读 ,共0个评论前一段时间陆陆续续写了一下Android内存Debug的一些手段,现在整理一下,在这边提供一个链接,也做一下简单的总结。 VSS,RSS,PSS,USS查看进程的内存使用情况使
2014-08-22 12:02:01
390
转载 Android TextView Button setPadding不起作用
正文一、折中办法1.1 方法一 int bottom = theView.getPaddingBottom(); int top = theView.getPaddingTop(); int right = theView.getPaddingRight(); int left = theView.getPaddingLeft();
2014-06-26 20:35:58
2815
原创 cocos2dx 3.0 windows8下开发环境搭建搭建 不需要cygwin
已经接触cocos2dx有一段时间,但一直也只是看看Demo,没有真正的去写
2014-04-27 15:43:47
1382
原创 NIOS 与window7的兼容问题
<br />Some says it is related to the Norton Antivirus software. Yes, my PC is installed with Norton Antivirus software. But I observed that it happened to Windows 7 PC which is not installed with Norton Antivirus software, as well. Turning off the Norton A
2011-05-09 02:49:00
479
Android高手进阶教程
2011-05-09
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人