上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 51 下一页
摘要: 531 #ifndef __HAVE_ARCH_MEMSET532 /**533 * memset - Fill a region of memory with the given value534 * @s: Pointer to the start of the area.535 * @c: The byte to fill the area with536 * @count: The size of the area.537 *538 * Do not use memset() to access IO space, use memset_io() instead.539 */540 v 阅读全文
posted @ 2012-03-20 13:51 移动应用开发 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 573 #ifndef __HAVE_ARCH_MEMMOVE574 /**575 * memmove - Copy one area of memory to another576 * @dest: Where to copy to577 * @src: Where to copy from578 * @count: The size of the area.579 *580 * Unlike memcpy(), memmove() copes with overlapping areas.581 */582 void *memmove(void *dest, const void *src 阅读全文
posted @ 2012-03-20 13:46 移动应用开发 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 551 #ifndef __HAVE_ARCH_MEMCPY552 /**553 * memcpy - Copy one area of memory to another554 * @dest: Where to copy to555 * @src: Where to copy from556 * @count: The size of the area.557 *558 * You should not use this function to access IO space, use memcpy_toio()559 * or memcpy_fromio() instead.560 */ 阅读全文
posted @ 2012-03-20 13:38 移动应用开发 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 如果你需要你的service与远程进程通信,那么你可以使用一个Messenger来为你的service提供接口.此技术使用不必使用AIDL就能执行进程间通信(IPC). 下面是如何使用Messenger的概要:service实现一个接收从客户端的每个调用引起的回调的Handler.Handler被用来创建一个Messenger对象(它是Handler的一个引用).Messenger创建一个从service的onBind()返回给客户端的IBinder.客户端使用IBinder来实例化这个Messenger(它引用到service的Handler),客户端用它来向service发送Messag. 阅读全文
posted @ 2012-03-20 08:06 移动应用开发 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 如果你的service仅被自己的应用使用并且不需跨进程工作,那么你可以实现你自己的Binder类使得你的客户端能直接使用service的公开接口方法.注:这只在客户端和service位于同一应用和同一进程中时才能工作,其实大多数都是这种情况.例如,在一个音乐应用需要把它的activity绑定到它自己的播放音乐的后台service时,这种方式就会很好地工作.下面是如何建立它:在你的service中,创建一个Binder实例,提供以下三种功能之一:Binder包含一些可供客户端调用的公开方法.返回当前的Service实例,它具有一些客户端可以调用的公开方法.或者,返回另一个类的实例,这个类具有.. 阅读全文
posted @ 2012-03-19 06:35 移动应用开发 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 在我写这篇随笔之前,你可以 Google 到几篇教你如何使用 NDK 编译 FFmpeg 的文章。但让人沮丧的是,当你按着文章中给出的方法去尝试编译 FFmpeg 时,你总是不能编译成功。你会遇到各种各样的错误,它们会让你渐渐丧失信心。我总结了一下导致编译失败几个原因:Google 提供的 NDK 有 BUG,需要修改 build-binary.mk 文件编译方法太复杂,或许还需要修改 FFmpeg 的源代码文章作者使用的 FFmpeg 源代码是 SVN 版,非正式版你所使用的操作系统不同和文章中使用的操作系统不同你需要对 FFmpeg 重新进行配置以符合你的具体需求我将在这篇随笔中解决上面这 阅读全文
posted @ 2012-03-17 18:02 移动应用开发 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 因为编码问题,今天查了一上午,最后确认是因为mysql对中文支持不好导致的。 使用utf8-unicode的中文标点,居然一个标点符号占用了4个字节。导致urlencode转义时地址错误。最后改为utf8-general问题解决了.utf8-general不但占用的空间和比unicode的少,而且查询效率也快。但是缺点就是对字符支持没有unicode的多。 阅读全文
posted @ 2012-03-17 12:31 移动应用开发 阅读(204) 评论(0) 推荐(0) 编辑
摘要: Ubuntu下编译AndroidNDK项目报arm-linux-androideabi-gcc:命令未找到NDK-BUILD失败,错误提示:make: ~/dev/android/ndk/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi-gcc: 命令未找到找了半天,在网上终于找到个解决办法step1:sudo apt-get install libc6-dev-i386step2:sudo apt-get install ia32-libs 阅读全文
posted @ 2012-03-17 00:24 移动应用开发 阅读(1132) 评论(0) 推荐(0) 编辑
摘要: Android NDK: Host 'awk' tool is outdated. Please define HOST_AWK to point to Gawk or Nawk ! /home/XXX/Android_install/android-ndk-r7/build/core/init.mk:258: *** Android NDK: Aborting.因为这个错误我整了一天了。这个错误时因为ndk种的awk文件比系统的版本要老很多,直接改ndk中awk的名字不够,直接将awk中bin目录改名。才可以。 阅读全文
posted @ 2012-03-17 00:20 移动应用开发 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 今天新建了一个测试项目,#include "SkBitmap.h" #include "SkDevice.h" #include "SkPaint.h" #include "SkRect.h" #include "SkImageEncoder.h" int main (int argc, char * const argv[]) { // Declare a raster bitmap, which has an integer width and height, // and a format 阅读全文
posted @ 2012-03-12 23:30 移动应用开发 阅读(881) 评论(0) 推荐(0) 编辑
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 51 下一页