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