摘要: A JNI interface pointer (JNIEnv*) is passed as an argument for each native function mapped to a Java method, allowing for interaction with the JNI environment within the native method.This JNI interface pointer can be stored, but remains valid only in the current thread.Other threads must first call 阅读全文
posted @ 2014-03-03 14:51 porter_代码工作者 阅读(2329) 评论(0) 推荐(0)
摘要: // Note://int x = a[0].GetInt(); // Error: operator[ is ambiguous, as 0 also mean a null pointer of const char* type.int y = a[SizeType(0)].GetInt(); // Cast to SizeType will work.int z = a[0u].GetInt(); // This works too.0u = SizeType(0)Json::Value作为数组时,读取0位置时,出现错误:Use of overload... 阅读全文
posted @ 2014-03-03 14:11 porter_代码工作者 阅读(1580) 评论(0) 推荐(0)
摘要: android调试工具addr2line使用:1.将ndk中的arm-linux-androideabi-addr2line可执行文件的路径加入配置文件~/.bashrc中,例如:export PATH=$PATH:~/dlna/android-ndk-r6b/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin2.使配置生效:source ~/.bashrc3.使用工具。例如:arm-linux-androideabi-addr2line -C -f -e ~/workspace/DLNA/libs/armeabi/lib 阅读全文
posted @ 2014-02-26 15:55 porter_代码工作者 阅读(3038) 评论(0) 推荐(0)
摘要: ---视频http://www.lanou3g.com/newslist.php?cid=7http://edu.51cto.com/lesson/id-15489.htmlhttp://www.microoh.com/04/02/25/25/---对比学习http://blog.csdn.net/totogo2010/article/details/7632384 阅读全文
posted @ 2014-02-24 23:10 porter_代码工作者 阅读(234) 评论(0) 推荐(0)
摘要: HandlerThread继承于Thread,所以它本质就是个Thread。HandlerThread类用于方便的创建一个含有looper的线程类,looper用来创建handler类。我们一般不创建looper对象,直接调用HandlerThread即可。HandlerThread本身实现了循环处理消息的功能,不用再直接调用Looper.prepare()和Looper.loop()方法。与普通Thread的差别就在于,它有个Looper成员变量。这个Looper其实就是对消息队列以及队列处理逻辑的封装,简单说就是消息队列+消息循环。使用HandlerThread步骤如下://步骤1:创新H 阅读全文
posted @ 2013-06-18 15:53 porter_代码工作者 阅读(342) 评论(0) 推荐(0)
摘要: Java知识点包括:接口与抽象的使用及区别,多线程,socket基础,集合类,也有个别公司考察定义,很无语.C/C++知识点包括:指针的移动,排序算法,链表,有时还会有二叉树的遍历或图的遍历.1.Android手机操作系统的四层架构?Applications Application Framework Android RunTime Libraries Liunx Kernel架构框架以此从上到下:1.Applications (应用程序(应用层)) Android会同一系列核心应用程序包一起发布,该应用程序包包括email客户端,SMS短消息程序,日历,地图,浏览器,联系人管理程序等.所有的 阅读全文
posted @ 2013-06-18 11:38 porter_代码工作者 阅读(1196) 评论(0) 推荐(0)
摘要: 单词王: 单词王 益智游戏 英语学习 单词查询 单词练习 社交功能 创意连连看 单词王学习简介:同步最新教材,按照课程来记忆单词,用游戏代替枯燥的单词记忆,带动您的学习热情,单词记忆不再枯燥 阅读全文
posted @ 2012-02-03 16:49 porter_代码工作者 阅读(704) 评论(0) 推荐(0)
摘要: <?xml version="1.0" encoding="UTF-8" ?><ROOT><serverdate>1</serverdate><versionid>2</versionid><isupdate>3</isupdate><downurl>4</downurl><versiontime>5</versiontime></ROOT> 阅读全文
posted @ 2012-01-29 00:11 porter_代码工作者 阅读(193) 评论(0) 推荐(0)
摘要: 因为是项目需要,发现jcarousel 插件提供的功能和接口相比jquery 其他滑块类的插件,是非常强大和好用的(如果项目有需要推荐大家使用),但是发现jcarousel 提供的AJAX 取数据方式,不符合当前项目的需求,项目的需求是在翻最后一页或者两页的时候,使用AJAX 动态去取后台的数据,生成将要或还没有显示的滑块子元素。 刚开始以为,很简单,使用Juery 的AJAX 方法,把数据取出来... 阅读全文
posted @ 2010-04-26 23:24 porter_代码工作者 阅读(777) 评论(1) 推荐(0)
摘要: 一:阅读前的准备条件1:目的,android 高性能方面的开发2:条件:liunx系统熟悉,c/c++ 熟悉,Java 熟悉,Eclipse 开发工具熟悉,JNI 调用方式熟悉,熟悉面向对象的程序设计,熟悉android的基本开发如:XML 布局,android基本控件的灵活应用,android 自定义控件开发和应用等android的常规开发。3:如果以上条件不熟悉,或者没有几年的开发经验,本文不... 阅读全文
posted @ 2010-04-26 22:36 porter_代码工作者 阅读(1672) 评论(0) 推荐(0)