摘要: 1024*600 放入drable-h 阅读全文
posted @ 2015-11-24 21:07 云中鹤5786 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 1、下载地址 https://dl.google.com/dl/android/studio/install/1.4.0.10/android-studio-ide-141.2288178-windows.exe 1.4正式版 2、各版本汇总 http://tools.an... 阅读全文
posted @ 2015-11-20 17:00 云中鹤5786 阅读(101) 评论(0) 推荐(0) 编辑
摘要: 一、命名规范 变量命名: 前缀+类型描述+意义描述 前缀:成员变量:m_*** 局部变量:l_*** 形参:a_*** 常量:大写_*** 枚举值:em_*** 二、常用快捷键 1、 ctrl+1 ... 阅读全文
posted @ 2015-11-16 19:32 云中鹤5786 阅读(161) 评论(0) 推荐(0) 编辑
摘要: LayoutInflater inflater=getLayoutInflater(); View layout=inflater.inflate(R.layout.set_device_dialog, (ViewGroup)findViewById(R.id.dialog)); etdevsi... 阅读全文
posted @ 2015-11-03 20:58 云中鹤5786 阅读(91) 评论(0) 推荐(0) 编辑
摘要: griedview.setOnItemLongClickListener的方法不执行,在listview中的每一个ITEM都存放了不同的布局;而在其中一个恰好放的的IMAGEVIEW,而且这个IMAGEVIEW还有onclick事件,这样导致了setOnItemLongClickListene... 阅读全文
posted @ 2015-11-03 19:38 云中鹤5786 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1、进入目录 cd /etc/twrt 2、 打开文件 vi /etc/twrt/config 3、退出文件 ESC—>shift+:——>wq 3、杀死进程 kill all twrt 阅读全文
posted @ 2015-10-27 12:36 云中鹤5786 阅读(5465) 评论(0) 推荐(0) 编辑
摘要: 1、socketClient 端输入的是字节流 byte[] buf = new byte[1024]; int len = 0; InputStream input = socket.getInputStream(); ... 阅读全文
posted @ 2015-10-23 14:28 云中鹤5786 阅读(102) 评论(0) 推荐(0) 编辑
摘要: // Setup to send message again in normal period (+ a little jitter) osal_start_timerEx( SampleApp_TaskID, SAMPLEAPP_SEND_PERIODIC_MSG_EVT, ... 阅读全文
posted @ 2015-10-21 15:20 云中鹤5786 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 本博文转载自http://blog.csdn.net/xiaanming/article/details/9750689 // 含有3个线程的线程池 private static final ExecutorService executorSocket = Executors ... 阅读全文
posted @ 2015-10-21 15:18 云中鹤5786 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 1、声明机制 // 单个线程机制测试 private Handler mHandler; Runnable mBackgroundRunnable; private boolean mRunning = true; 2、在Oncreate()中启动 //单个线... 阅读全文
posted @ 2015-10-21 15:12 云中鹤5786 阅读(277) 评论(0) 推荐(0) 编辑