摘要:
#include #include #include #ifdef NOT_EMULATOR#define TAG "for_test"#include #define LOGD(...) __android_log_print(ANDROID_LOG_DEBUG, TAG, __VA_ARGS__... 阅读全文
摘要:
1.在Android.mk中定义一个ENGload时的flagAndroid.mk....ifeq ($(TARGET_BUILD_VARIANT),eng)//user,userdebug. LOCAL_CFLAGS += -D__ENG_LOADendif在code中:#if defined... 阅读全文
摘要:
#includeint fun( int n) { static int f = 1; f = f * n; return f;}void main() { int i; for (i = 1; i <= 5; i++) printf("fun(%d)=%... 阅读全文
摘要:
用宏定义定义一个方法,不用再对SFunc进行定义了,可以(在main中)直接call#ifdef sDebug #define SFunc(a) func(a)#else #define SFunc(a)#endif//#ifndef myFunvoid func(int a){ ... 阅读全文
该文被密码保护。 阅读全文
摘要:
下载Android封装的eclipse之后,发现Unhandled event loop exception ,网上搜了很多办法,包括百度杀毒,配置init文件等都不行,直到下面。http://stevex.blog.51cto.com/4300375/994544我把eclipse发送快捷键到桌面... 阅读全文
摘要:
1.txt内容是int类型#include int main() { int a[3][3]; int i, j; FILE* fp = fopen("d:\\a.txt", "r"); if (fp == NULL) { printf("无文件"); ... 阅读全文
摘要:
//Android.mkLOCAL_SHARED_LIBRARIES := \ libz\ libcutils \ libutils//C file#define TAG "skia_png"#include #define LOGD(...) __android_log_pri... 阅读全文
摘要:
1.修改Android.mk文件在mk中所有的LOCAL_SHARED_LIBRARIES地方添加LOCAL_SHARED_LIBRARIES:=\libcutils\libutils2.在c中添加:#include #include #include #include #define NE_FOL... 阅读全文
摘要:
package com.example.grayalphatranstest;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java... 阅读全文