摘要: 第一步,建立一个普通的Android项目HelloNDK,然后在与src同一级的目录下新建一个jni目录;第二步,在jni目录下新建一个hello_ndk.c文件,代码如下:#include #include #include #include #include #include #include ... 阅读全文
posted @ 2014-08-14 18:31 我爱物联网 阅读(1571) 评论(1) 推荐(0)
摘要: 代码 /** * * 返回添加到桌面快捷方式的Intent: * * 1.给Intent指定action="com.android.launcher.INSTALL_SHORTCUT" * * 2.给定义为Intent.EXTRA_SHORTCU... 阅读全文
posted @ 2014-08-14 12:43 我爱物联网 阅读(821) 评论(2) 推荐(1)
摘要: abstract的method是否可同时是static,是否可同时是native,是否可同时是synchronized?abstract的method 不可以是static的,因为抽象的方法是要被子类实现的,而static与子类扯不上关系!abstract的method 不可以是native的,na... 阅读全文
posted @ 2014-08-14 12:42 我爱物联网 阅读(981) 评论(0) 推荐(0)
AmazingCounters.com