摘要: Android2.2以后orientation sensors 就被deprecated了官方建议用acceleration and magnetic sensor 来算关于这个问题,CSDN上一篇博文讲的非常好http://blog.csdn.net/flowingflying/article/d... 阅读全文
posted @ 2015-11-09 10:36 龟窝 阅读(1863) 评论(0) 推荐(0) 编辑
摘要: Beginning in Android 6.0 (API level 23), users grant permissions to apps while the app is running, not when they install the app. This approach stream... 阅读全文
posted @ 2015-11-08 19:17 龟窝 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 1.This is the website to downloadFactory Images for Nexus Deviceshttps://developers.google.com/android/nexus/images?hl=enand choose the nexus5 one.2.下... 阅读全文
posted @ 2015-10-31 18:42 龟窝 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 设置 Acitivity 所在 window 的属性 @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); if (... 阅读全文
posted @ 2015-10-28 12:14 龟窝 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 1.在项目目录中,右键app——New——Folder—— Assets Folder2.把.ttf或者.oft文件拷进这个assets文件夹3.在onCreate()中Typeface typeface = Typeface.createFromAsset(getAssets(), "TpldKh... 阅读全文
posted @ 2015-10-28 10:49 龟窝 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 在mac上,选中需要的代码,然后Option+(shift)+Command+L全部重新排列!!爽飞! 阅读全文
posted @ 2015-10-28 10:24 龟窝 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 这两篇博文分别讲的很好:ListView:http://www.cnblogs.com/noTice520/archive/2011/12/05/2276379.htmlGridViw:http://blog.csdn.net/hellogv/article/details/4567095详细使用参... 阅读全文
posted @ 2015-10-26 17:53 龟窝 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 参考博文:http://havee.me/mac/2013-12/how-to-install-and-use-homebrew.htmlError: GitHub API rate limit exceeded for ip. See http://developer.github.com/v3/... 阅读全文
posted @ 2015-10-26 11:20 龟窝 阅读(1608) 评论(0) 推荐(0) 编辑
摘要: 代码如下:#include #include #include void example(IplImage* image){ // Create some windows to show the input // and output images in. // cvName... 阅读全文
posted @ 2015-10-25 18:29 龟窝 阅读(355) 评论(0) 推荐(0) 编辑
摘要: #include #include int main(int argc, char** argv){ cvNamedWindow("Example2", CV_WINDOW_AUTOSIZE); CvCapture* capture = cvCreateFileCapture("... 阅读全文
posted @ 2015-10-25 17:44 龟窝 阅读(264) 评论(0) 推荐(0) 编辑