Android中的AutoMutex
摘要:在Threads.h文件中定义:1 /*2 * Automatic mutex. Declare one of these at the top of a function.3 * When the function returns, it will go out of scope, and release the4 * mutex.5 */6 7 typedef Mutex::Autolock AutoMutex;其中的Autolock: 1 // Manages the mutex automatically. It'll be locked when Autolock...
阅读全文
posted @
2013-04-19 15:36
J.evan
阅读(664)
推荐(0)
使用NDK开发SQLite3
摘要:尝试环境: Android2.2(源码) SDK android-ndk-r7尝试在NDK下面使用C语言做Android的SQLite3数据库存储功能。做了如下尝试:在Android的源代码中找到sqlite3.h和libsqlite.so拷贝到NDK的lib(D:\android\android-ndk-r7-linux\platforms\android-3\arch-arm\usr\lib)和include(D:\android\android-ndk-r7-linux\platforms\android-3\arch-arm\usr\include)目录下。测试代码: 1 /* -..
阅读全文
posted @
2012-09-27 15:01
J.evan
阅读(3495)
推荐(0)
android使用C开发
摘要:开发方式: 1、使用JNI, 2、使用NDK,<-这个才是王道,NDKR5后可以开发完整的应用程序,如游戏等。以前只能使用 jni,做调用。ndk官方参考。http://developer.android.com/reference/android/app/NativeActivity.html看详细介绍:http://baike.baidu.com/view/5236494.htm推荐看下下面这边文章,写得非常不错。Android: NDK编程入门笔记http://www.cnblogs.com/hibraincol/archive/2011/05/30/2063847.html
阅读全文
posted @
2011-12-27 23:33
J.evan
阅读(266)
推荐(0)