2013年7月13日

Android ListView之选中(撤销选中)Item

摘要: 在ContactListActivity中,点击未选中的item将其选中,再点击已选中的item撤销其选中 public void onItemClick(AdapterView parent, View view, int position, long id) { ContactListAdapter.ViewHolder viewHolder = null;... 阅读全文

posted @ 2013-07-13 22:28 勤修 阅读(3815) 评论(0) 推荐(0) 编辑

没有找到AdbWinApi.dll

摘要: 今天调试adb命令时遇到一些问题 1. 没有找到AdbWinApi.dll 2. adb server is out of date. killing... ADB server didn't ACK * failed to start daemon * error: unknown host service 3. cannot bind 'tcp:5037' ... 阅读全文

posted @ 2013-07-13 22:08 勤修 阅读(2819) 评论(0) 推荐(0) 编辑

Android Intent之Action应用

摘要: Log.i("txrjsms", "whereDoYouJumpFrom:"+getIntent().getPackage()); 结果是null Log.i("txrjsms", "whereDoYouJumpFrom:"+getIntent().getAction()); 结果是: 07-13 16:08:10.007: I/txrjsms(7043): whereDoYouJumpFro... 阅读全文

posted @ 2013-07-13 16:13 勤修 阅读(318) 评论(0) 推荐(0) 编辑

不能添加重复的Contact到RecipientBox中

摘要: 不能添加重复的Contact到RecipientBox中 在开始添加的操作时,判断是否已在RecipientBox中,如果已经在返回值为null的TextView。 再根据TextView判断是否null,如果非null添加到RecipientBox中,如果null弹出Toast提示。 private TextView getRecipientItem(TxrjContact contact... 阅读全文

posted @ 2013-07-13 15:39 勤修 阅读(245) 评论(0) 推荐(0) 编辑

通过Intent传递对象

摘要: BluetoothDevice device = data.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE); 在蓝牙开发中,通过intent(data)传递BluetoothDevice对象,先后调用putParcelableExtra和getParcelableExtra存入和取出BluetoothDevice对象。 put/getParce... 阅读全文

posted @ 2013-07-13 15:18 勤修 阅读(398) 评论(0) 推荐(0) 编辑

Apk反编译助手

摘要: Android是一个让人很纠结的产品,它开源开放,但是也有很多蛋疼坑爹的地方,还是那句话,谁开发谁知道! Apk反编译助手,懒人和对command line无爱的同学们可下载看看,至少需要.net 2.0和jdk 1.6。 核心是apktool,dex2jar,jd-gui,只是包了层皮。具体请访问以下地址。 apktool : http://code.google.com/p/andro... 阅读全文

posted @ 2013-07-13 14:24 勤修 阅读(372) 评论(0) 推荐(0) 编辑

导航