摘要:
从github上面导入了工程后发现需要v7包的支持,这个包在SDK路径下面就有,如:G:\work soft\android-sdk-windows\extras\android\support\v7, 里面有一个appcompat需要导入,直接File->Import->copy into ... 阅读全文
摘要:
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.思路:首先想到的机试不断地减去一个数直到0为止,但是这样得复杂度为O(n),只得... 阅读全文
摘要:
1,在Android.mk文件中加上LOCAL_LDLIBS := -L$(SYSROOT)/usr/lib -llogLOCAL_PATH := $(call my-dir)include $(CLEAR_VARS)LOCAL_MODULE :=ndkdemoLOCAL_SRC_FILES :=c... 阅读全文
摘要:
调试的时候会碰到总是自动打开avd太慢了,希望能够直接用真机,那么设置如下 Run As ->Run Configuration->target->选择 active device 阅读全文
摘要:
在Eclipse中配置NDK自动编译环境buildersAndroid学习笔记——NDK中C++标准库、STL的配置;Include其他头文件 参考了百度经验里面的部分内容,发现里面还有些细节没有写出来,其中遇到不少问题,所以就在这里写出来和大家分享! 参考链接 Android NDK入门开发实... 阅读全文
摘要:
1、windows中切换目录中有空格可以直接切换,但是Linux中需要使用转义例如要切换到/root/src test/命令:cd src\ test使用反斜杠转义后面再加上空格就可以啦2、如果执行$NDK/ndk-build出现/ndk-build: No such file or directo... 阅读全文
摘要:
用javac 生成class文件后。假设class文件在源文件目录的包下,先将编译路径设置成源文件目录即可set classpath=G:\eclipse java\HelloWorld\src然后javah -jni com.example.helloworld.JNITest搞定 阅读全文
摘要:
Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algor... 阅读全文
摘要:
Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"((()))... 阅读全文
摘要:
Letter Combinations of a Phone NumberGiven a digit string, return all possible letter combinations that the number could represent.A mapping of digit ... 阅读全文