- 博客(88)
- 资源 (11)
- 收藏
- 关注

原创 ubuntu android开发记录
-----------------20120512-----------------1)[2012-05-12 17:12:51 - SDK Manager] Unable to find a 'userdata.img' file for ABI armeabi to copy into the AVD folder.Create new Android Virtual Device时,
2012-05-12 17:13:55
1406
原创 Attempt to invoke interface method 'java.util.Iterator java.util.List.iterator()' on a null object
Process: com.xxx.yyyFlags: 0xc8be45Package: com.xxx.yyy v1000 (xxxxxxx-yyyyyyyy)Build: zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz:eng/test-keysjava.lang.NullPointerException: A...
2019-05-24 10:39:58
9146
原创 W/ActivityManager( 2064): Launch timeout has expired, giving up wake lock!
todo
2019-05-15 18:02:21
3385
1
原创 centos boost sqlite missing: line 81: aclocal-1.15: command not found
问题:# makeCDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /opt/sqlite/missing aclocal-1.15/opt/sqlite/missing: line 81: aclocal-1.15: command not foundWARNING: 'aclocal-1.15' is ...
2019-04-10 16:06:05
4931
1
原创 centos boost fatal error: bzlib.h: No such file or directory #include "bzlib.h"
问题:libs/iostreams/src/bzip2.cpp:20:56: fatal error: bzlib.h: No such file or directory#include "bzlib.h" // Julian Seward's "bzip.h" header.分析 :bzlib就是bzip2包首先查看yum源中的bzip2包,命令为:#yum se...
2019-04-10 15:27:25
2154
原创 centos boost fatal error: pyconfig.h: No such file or directory #include pyconfig.h
# cat /etc/redhat-releaseCentOS Linux release 7.4.1708 (Core) 系统是这个编译boost遇到问题:./boost/python/detail/wrap_python.hpp:50:23: fatal error: pyconfig.h: No such file or directory# include <pyc...
2019-04-10 15:06:27
9526
原创 warning: remote HEAD refers to nonexistent ref, unable to checkout.
问题:git clone无法获取代码~/Desktop$ git clone xxxCloning into 'xxx'...remote: Counting objects: 670, doneremote: Finding sources: 100% (670/670)remote: Total 670 (delta 312), reused 666 (delta 312)Rec...
2019-03-26 13:56:52
4091
1
原创 Installation failed with message Failed to install all .
问题:AS提示你安装失败:Installation failed with message Failed to install all .It is possible that this issue is resolved by uninstalling an existing version of the apk if it is present, and then re-installi...
2019-03-25 15:16:28
1189
翻译 Difference Between String , StringBuilder And StringBuffer Classes With Example : Java
Today we are going to understand the difference between String , StringBuilder and StringBuffer . As you will find that there are minor differences between the above mentioned classes.String
2017-01-13 19:49:54
468
翻译 How to catch java.lang.NoClassDefFoundError?
NoClassDefFoundError is a subclass of Error and not an Exception. Hence you need to use:try { new org.eclipse.cdt.utils.AR();}catch(NoClassDefFoundError e) { //handle carefully}how-to
2016-12-30 17:43:56
1034
转载 how to import x509.pem pk8 file into jks(keystore)?
為了讓clipse產生的APK有system權限,必須sign platform KeystorePrerequisiteSoftwarekeytoolopensslKeyFile Path: build/target/product/securityPrivate Key: platform.pk8Public Key: platf
2016-12-24 16:15:28
2052
原创 How to Get CPU Information on Android Android上获取cpu信息
Unlike iPhone, Android devices come with different hardware from different manufacturers. One important difference is the CPU architecture. Although almost all Android devices use ARM CPU, it comes wi
2016-12-24 13:17:07
2926
转载 [android]am start [<OPTION>]... <INTENT>
其中 INTENT 的表示法,可以對照 android.content.Intent 的說明:[-a ] [-c ]... [-n ] [-d ] [-t ] [ [,]...]... [ | | ]General action - setAction(String action)Categor
2016-12-24 11:36:36
819
原创 [android]Color
#ff000000 此为16进制颜色代码,前2位ff为透明度,后6位为颜色值(000000为黑色,ffffff为白色)。透明度分为256阶(0-255),计算机上用16进制表示为(00-ff)。透明就是0阶,不透明就是255阶,如果50%透明就是127阶。10进制的255换算成16进制是ff,127换算成16进制是7f,#7f000000 代表50%透明度的黑色
2016-11-19 23:12:31
483
原创 android kill process 杀死进程的方法
1: 杀死自己进程的方法android.os.Process.killProcess(android.os.Process.myPid());2: 杀死自己进程的方法System.exit(0)/System.exit(1)3: 杀死自己进程的方法java.lang.System.exit(int status)终止当前正在运行的 Java 虚拟机。参数用作状态码;
2016-11-13 14:18:20
27871
原创 [android Studio] unhandled exception: android.os.RemoteException
Android Studio中,如果代码有错误,红色波浪线提示,光标定位到错误代码行时,可以看到代码错误原因描述,点击旁边的图标,或者用快捷键Alt + Enter,就可以看到修复这个问题的提示,Add exception to method signature Surround with try/cache
2016-11-12 23:08:09
8808
原创 [android studio]java.lang.IllegalStateException: ScrollView can host only one direct child
error stack:E/AndroidRuntime(21460): FATAL EXCEPTION: mainE/AndroidRuntime(21460): java.lang.IllegalStateException: ScrollView can host only one direct childE/AndroidRuntime(21460): at android.wi
2016-11-05 19:52:03
1023
原创 [android studio]./studio.sh: 137: ./studio.sh: declare: not found
develop environment : ubuntu + android studio 2.2$nohup ~/android-studio/bin/studio.sh &提示error:/home/xxx/android-studio/bin/studio.sh: 137: /home/xxx/android-studio/bin/studio.sh: declare:
2016-10-30 18:04:46
1194
原创 删除ROM中内置的应用
手机rom中有一个运营商或者第三方rom方制作方内置的应用,即使root了,还是无法通过豌豆荚或其它工具卸载,没有办法,只能通过手动来删除了,先运行该应用,然后通过dumpsys activity查看最top的activityACTIVITY MANAGER ACTIVITIES (dumpsys activity activities) Main stack: TaskRec
2016-10-22 21:00:30
5326
原创 adb shell找不到设备
$adb devicesList of devices attached 什么设备也没有?$lsusbBus 001 Device 002: ID 413c:2003 Dell Computer Corp. KeyboardBus 001 Device 017: ID 10a9:1104 SK Teletech Co., Ltd Sky Vega IM-A650SBus 0
2016-10-22 14:29:42
7015
原创 Android WebView缓存浅析
先前修改了服务器web页面,应用中使用WebView来显示这些页面,但是修改web页面后无论怎么刷新,客户端上的页面始终显示修改前的旧页面。百思不得其解,先是怀疑服务器web有cache,就把web服务关闭了,发现还是显示旧页面,那么问题只能出在客户端了,经查看以下目录中有大量跟WebView相关内容/data/data/$package/cache//data/data/$package
2016-10-21 19:49:10
1978
原创 [android studio]com.android.ide.common.process.ProcessException: Failed to execute aapt
现象:android studio Terminal 中执行./gradlew build报错:app:processDebugResources FAILEDFAILURE: Build failed with an exception.* What went wrong:Execution failed for task ':app:processDebugResources'
2016-10-21 00:46:57
29353
1
原创 源码1 禁用拷贝构造函数 重载=运算符,以禁用=赋值 字符串拆分
#include#include#include#include#include#include#include#includeusing namespace std;class sampleClass { public: sampleClass(int size); virtual ~sampleClass(); int
2013-06-12 22:29:54
1505
原创 android linux c/c++内存泄露
1)android资源泄露检测?2)android linux c/c++内存泄露静态检测方法3)android linux c/c++内存泄露动态检测方法在linux 平台可以用ps命令,来监视内存的使用,比如下面的命令(观测指定进程的VSZ值):ps -auxprocranktop==============ps 的参数说明===========
2012-08-28 21:06:00
1386
原创 git使用
1)git log查看提交日志git log 查看全部提交日志git log -2 查看最近2次的提交日志git log --graph 查看提交日志,以text-based图形方式显示。运行git log:commit 138e3a01681dc33c9b8d31777bd0e13192045791Author: lostmouseDate: Thu
2012-08-23 16:44:49
1180
转载 GDB backtrace bt 查看程序crash堆栈信息
8 查看栈信息The call stack is divided up into contiguous pieces called stack frames, or frames for short; each frame is the data associated with one call to one function. The frame contains the arguments
2012-08-13 16:00:32
40861
原创 android开发之常见编译错误(一)
1)The method onClick(View) of type Main.ButtonListener must override a superclass解决办法:http://stackoverflow.com/questions/8697513/why-do-i-get-must-override-a-superclass-method-with-override2)
2012-07-24 17:13:42
903
原创 android之Adapter
图1 Adapter、数据、UI三者关系适配器的继承结构Android开发——说说Adapter那点事Android Adapter适配器android 适配器Adapter的使用总结android 适配器Adpter的使用总结 之 CursorAdpterCursor与Adapter结合使用
2012-07-24 12:06:17
832
原创 linux开发参考文章汇集
1)Linux C编程一站式学习http://learn.akae.cn/media/index.html2)源码搜搜网站,可以下到很多不错的源码http://www.codesoso.com/default.aspx3)CodeForge.cn 免费源码开发与分享 http://www.codeforge.cn/4)中国移动开发频道ht
2012-07-06 17:40:54
662
原创 linux编程错误总结
1)error: ‘string’ does not name a type添加using std::string或者使用using namespace std;2)c++ compile error: discards qualifierhttp://wlx.westgis.ac.cn/382/可能发生const常成员函数调用普通非const成员函数。
2012-07-06 14:57:33
2301
原创 linux socket开发参考文章
1)示例代码有明显错误,但不失为好的参考文件Linux下Socket编程IBM文档库:Linux socket 编程,第一部分http://www.ibm.com/developerworks/cn/education/linux/l-sock/index.htmlLinux socket 编程,第二部分http://www.ibm.com/develope
2012-07-04 17:57:53
752
原创 linux开发基础之 vi gdb调试(一)
1)vivi工作模式:编辑方式、插入方式和命令方式。当运行vi时,首先进入编辑方式命令行模式功能键:yy :复制光标所在行到缓冲区[n]yy :例如,6yy 表示拷贝从光标所在的该行“往下数”6行文字p :将缓冲区内的字符贴到光标所在位置。注意:所有与“y”有关的复制命令都必须与“p”配合才能完成复制与粘贴功能。 dd :删除光标所在行。
2012-06-27 17:25:57
3234
原创 C/C++面试题--数组作为函数参数的几个问题
void fun(int array[10]){ int *p = &array[-1]; //p = &array[0] - 1; cout<<"function:fun()"<<endl; cout<<"address of array: "<<array<<endl; cout<<"address of p: "<<p<<endl; cout<<"sizeof(array):
2012-06-22 20:58:25
1037
转载 C/C++面试题 -- 什么是堆?什么是栈?堆和栈的区别?
一)什么是堆?什么是栈?堆和栈的区别? 1、栈区(stack)— 由系统自动分配释放 ,存放函数的参数值,局部变量的值等。其操作方式类似于数据结构中的栈。 2、堆区(heap) — 一般由程序员分配释放, 若程序员不释放,会造成内存泄露,程序结束时可能由OS回收,分配方式倒是类似于链表 。堆和栈的理论知识 (堆和栈的区别)1 申请方式 stack: 由系统自动分配。
2012-06-22 20:39:14
1188
原创 android参考文章
menuAndroid 菜单(OptionMenu)大全 建立你自己的菜单http://www.cnblogs.com/salam/archive/2011/04/04/2005329.htmlAndroid私有文件资源文件的存取http://dev.10086.cn/cmdn/wiki/index.php?doc-view-6017.html
2012-06-17 17:14:52
596
原创 设计模式
1)设计模式之单件模式 singleton:http://blog.csdn.net/jzp12/article/details/76211062)设计模式之工厂模式factory 抽象工厂模式 abstract factoryhttp://blog.csdn.net/jzp12/article/details/76663783)设计模式之代理模式 proxyhttp:
2012-06-17 16:59:48
594
原创 面试准备文章 知识点
伯乐在线http://blog.jobbole.com/Cate:我是如何准备Google面试的http://blog.jobbole.com/18040/Java程序员面试中的多线程问题http://blog.jobbole.com/18571/编程之美2.10 寻找数组中的最大值和最小值什么时候会采用哈希表,而不是数组?key/value
2012-06-15 23:16:56
712
原创 设计模式之工厂模式factory 抽象工厂模式 abstract factory
工厂模式 factory pattern提供创建对象的接口.抽象工厂模式 abstract factory pattern分析:FactoryPattern.h#ifndef _FACTORYPATTERN_H_#define _FACTORYPATTERN_H_typedef enum{ SALE_OBJECT_CHILD, //儿童手机 SALE_O
2012-06-15 15:02:07
1193
原创 设计模式之代理模式 proxy
代码下载:http://download.csdn.net/detail/jzp12/43710441)基本概念:在 Gof 的书中对Proxy模式的目的给定为:为其它的物件提供一种代理,以控制对这个物件的访问。由这句话所延伸出来的意思是,根据您的目的不同,您的代理物件将负有不同的责任,因为产生多种不同的代理情况。代理模式分为静态代理和动态代理。2)相关类及其方法:java
2012-06-13 17:20:05
1118
转载 设计模式之外观模式 facade
代码下载:http://download.csdn.net/detail/jzp12/4371049我将通过对外观模式 (Facade Pattern) 的讲解来开始我们对设计模式的学习。也许在过去你就已经使用到了外观设计模式只是你并未曾注意到。 在这一章里将包含以下的一些内容:l 什么是外观设计模式 (Facade Pattern) 及其用途 l
2012-06-12 22:47:19
1995
The Busy Coder's Guide to Android Development
2014-03-22
android activity跳转 Application Context实现共享数据
2012-05-29
一种简单方法的实现文件递归搜索
2011-05-14
一种简单方法的实现文件递归搜索
2011-05-14
Cursor_Mouse光标和鼠标控制
2011-05-14
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人