在多设备(模拟器)时,想要直接用logcat查看其中一台的状态,或者直接把应用安装到目标设备上时,需要指定设备号。adb 
devices这个指令可以得到当前设备的序列号(serialNumber)。比如一个模拟器通常是 emulator-5554在adb的指令后面加上参数 -s 
比如 -s emu....
                            
                            
                                分类:
移动开发   时间:
2014-05-19 11:38:07   
                                阅读次数:
373
                             
                    
                        
                            
                            
                                package com.yunkapay.push.mobile.parcelable;import 
android.os.Parcel;import android.os.Parcelable;import android.util.Log;import 
com.yunkapay.push.mob...
                            
                            
                                分类:
移动开发   时间:
2014-05-16 06:09:04   
                                阅读次数:
542
                             
                    
                        
                            
                            
                                su//获取root权限setprop service.adb.tcp.port 
5555//设置监听的端口,端口可以自定义,如5554,5555是默认的stop adbd//关闭adbdstart adbd//重新启动adbd
                            
                            
                                分类:
移动开发   时间:
2014-05-16 06:01:28   
                                阅读次数:
305
                             
                    
                        
                            
                            
                                背景
在 Linux-3.8 以后,Android 的内核分支,便去掉了 f_adb,改使用 USB function FS,在用户空间实现 USB adb 功能。这篇文章根据原作者的 Google+ 文章,在 Atmel sama5 开发板上做了测试,将步骤记录如下,供需要使用的读者参考,你也可以查看作者原文:https://plus.google.com/111524780435806926...
                            
                            
                                分类:
移动开发   时间:
2014-05-15 23:30:11   
                                阅读次数:
538
                             
                    
                        
                            
                            
                                一、使用adb删除系统应用,如Launcher.apkadb root 获取root权限adb 
remount 挂载系统的读写权限adb shellcd system/app 进入系统应用程序目录rm Launcher.apk 
删除Launcher.apk,在删除之前可以先查看系统目录先都有那些应用
                            
                            
                                分类:
数据库   时间:
2014-05-15 22:24:15   
                                阅读次数:
349
                             
                    
                        
                            
                            
                                介绍ViewFlipper
ViewFlipper
Simple ViewAnimator that will animate between two or more views that have been added to it. Only one child is shown at a time. If requested, can automatically flip betwee...
                            
                            
                                分类:
其他好文   时间:
2014-05-15 18:37:44   
                                阅读次数:
356
                             
                    
                        
                            
                            
                                在学习Stl的过程中,经常看到->符号的重载,但一直不太明白。 
今天做了一个小测试,来看看如果调用它。 以list的迭代器为例,在 pointer operator->() const { return 
&(operator*());}中加入 cout str_list; str_list.push...
                            
                            
                                分类:
其他好文   时间:
2014-05-14 10:32:52   
                                阅读次数:
221
                             
                    
                        
                            
                            
                                运行android程序报错The connection to adb is down, and a 
severe error has occured。原因是adb.exe无法运行。在命令行中输入adb.exe kill-serveradb 
start-server重启eclipse,即可解决问题。
                            
                            
                                分类:
数据库   时间:
2014-05-14 02:04:53   
                                阅读次数:
377
                             
                    
                        
                            
                            
                                上层为安卓, 下层为调用c/c++ 库
1、将vargind 按官网方法下载源码编译  得Inst目录
2、通过win 下安卓sdk 中 platform-tools 中的adb push Inst 到/data/local 下
3、可把adb.exe所在目录 设置到系统环境变量中
4、在cmd 中把执行adb push  Inst /data/local/
5、adb sh...
                            
                            
                                分类:
移动开发   时间:
2014-05-13 14:03:30   
                                阅读次数:
445
                             
                    
                        
                            
                            
                                ext4.2需求:清空store1的数据,并把store2的数据加载到store1中。速度太慢,需要优化。原始代码:varstart1=newDate().getTime();
anlyGridStore.removeAll();
varstart2=newDate().getTime();
console.log(start2-start1);//614
analyses.each(function(record){
data.push..
                            
                            
                                分类:
其他好文   时间:
2014-05-13 03:54:42   
                                阅读次数:
255