1.复制数据库文件:
D:\Program Files\android-sdk-windows-1.5_r3\tools>adb pull /data/data/cn.coral.a
ndriod.check/databases/check.db E:\Workspace\check.db
512 KB/s (8192 bytes in 0.015s)
2.操作数据库
sqlite3 mytest.db
sqlite3 mytest.db
SQLite version 3.5.9
Enter ".help" for instructions
sqlite> .schema
.schema
CREATE TABLE android_metadata (locale TEXT);
CREATE TABLE test_table (_id integer primary key autoincrement,title text not null, details text not null);
sqlite>
3.复制本地文件到手机
# cd databases
cd databases
# ls
ls
[0;0mcheck.db[0m
# pwd
pwd
/data/data/cn.coral.andriod.check/databases
# exit
exit
D:\Program Files\android-sdk-windows-1.5_r3\tools>adb push E:\Workspace\coral.ph
one\branches\AndriodCheck\doc\check.db /data/data/cn.coral.andriod.check/databas
es
256 KB/s (8192 bytes in 0.031s)
D:\Program Files\android-sdk-windows-1.5_r3\tools>
4.查看日志
D:\Program Files\android-sdk-windows-1.5_r3\tools>adb shell
#logcat
5.申请Android Map AI Key:
C:\>keytool -list -alias androiddebugkey -keystore "C:\Documents and Settings\LIBIN\.android\debug.keystore"
输入keystore密码:android
androiddebugkey, 2009-8-6, PrivateKeyEntry,
认证指纹 (MD5):
45:B0:53:A7:E4:BA:EE:AE:99:1B:C7:59:56:6C:3F:15
申请地址:http://code.google.com/intl/zh-CN/android/maps-api-signup.html
You key is:
0IH-__2EFEVg3DSc08A20ZMca73rWVIq68a0nHw
<com.google.android.maps.MapView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:apiKey="0IH-__2EFEVg3DSc08A20ZMca73rWVIq68a0nHw"
/>
6.MyEclips中的开发插件
ADT https://dl-ssl.google.com/android/eclipse/