摘要: 刚刚移植完海思。趁新鲜,赶紧写博客记录一下。刚换新公司,老公司用的平台都是三星的,对Qt等支持都非常好,不需要太多操心。新公司采用的是海思的平台,自带pdf是没有说明如何使用QT。QT版本采用Qt4.5.3海思使用的是Hi3520D。首先要安装海思的SDK1、hi3520D SDK包位置 在"... 阅读全文
posted @ 2015-04-17 11:17 plmmlp09 阅读(6889) 评论(1) 推荐(0) 编辑
摘要: //把日期转为字符串publicstaticStringConverToString(Datedate){DateFormatdf=newSimpleDateFormat("yyyy-MM-dd");returndf.format(date);}//把字符串转为日期publicstaticDateC... 阅读全文
posted @ 2015-03-01 20:07 plmmlp09 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 1 HttpClient httpClient = new DefaultHttpClient();2 HttpGet httpGet = new HttpGet(url);3 httpGet.addHeader("Accept-Language","zh-CN");//指定返回中文4 HttpRe... 阅读全文
posted @ 2015-03-01 09:31 plmmlp09 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 首先是WebView部分,内嵌浏览器 1 webView = (WebView) findViewById(R.id.web_view); 2 webView.getSettings().setJavaScriptEnabled(true); 3 webView.setWebViewClient(n... 阅读全文
posted @ 2015-02-05 13:43 plmmlp09 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 启动和停止Service:Intent startIntent = new Intent(this, MyService.class);startService(startIntent); // 启动服务Intent stopIntent = new Intent(this, MyService.c... 阅读全文
posted @ 2015-02-02 21:24 plmmlp09 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1 private class DownloadFilesTask extends AsyncTask { 2 protected Long doInBackground(URL... urls) { 3 int count = urls.length; 4 ... 阅读全文
posted @ 2015-02-02 15:55 plmmlp09 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 主要有Message,Handler,MessageQueue,Loop:1.Message 和Handler配合使用:Message message = new Message();message.what = UPDATE_TEXT;handler.sendMessage(message); /... 阅读全文
posted @ 2015-02-02 15:43 plmmlp09 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 转自http://www.blogfshare.com/memory-alignment.html一、什么是内存对齐、为什么需要内存对齐?现代计算机中内存空间都是按照byte划分的,从理论上讲似乎对任何类型的变量的访问可以从任何地址开始,但实际情况是在访问特定类型变量的时候经常在特 定的内存地址访问... 阅读全文
posted @ 2015-01-30 12:42 plmmlp09 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 1 // 查询联系人数据 2 cursor = getContentResolver().query( 3 ContactsContract.CommonDataKinds.Phone.CONTENT_URI, 4 null, null, null, null); 5 while (cursor.... 阅读全文
posted @ 2015-01-28 20:11 plmmlp09 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 存储数据需要获得SharedPreferences对象。1.Context类中的getSharedPreferences();2.Activity类中的getPreferences();3.PreferenceManager类中的getDefaultSharedPreferences();1 Sha... 阅读全文
posted @ 2015-01-16 12:32 plmmlp09 阅读(220) 评论(0) 推荐(0) 编辑