android 常见问题[7]
时间:2009-07-22 来源:fewlife
by tangke <[email protected]> 2009-06-17
1.如何给模拟器打电话以及发送短信?
GPhone的模拟器有个特有的号码:15555218135,这个就类似我们实体手机的SIM卡号码啦。
运行 cmd 或者shell终端
连接: telnet localhost 5554
命令:gsm call 15555218135
是不是模拟器上显示来电了?接听/挂断和实体手机一样。
只要把第三条命令改成:
sms send 15555218135 Hello,this is a Message.
2.段错误
### WARNING: could not find /etc/localtime or /usr/share/zoneinfo/localtime. unable to determine host timezone
我开始在启动emulator的时候经常报这个错误,加上-timezone "Asia/ShangHai"之后就可以了,后来分析,原来是因为emulator在启动的时候会查找宿主机上面的/etc/localtime文件,在我的宿主机上面[debian]上面没有发现/etc/localtime文件。
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime就可以了。
1.如何给模拟器打电话以及发送短信?
GPhone的模拟器有个特有的号码:15555218135,这个就类似我们实体手机的SIM卡号码啦。
运行 cmd 或者shell终端
连接: telnet localhost 5554
命令:gsm call 15555218135
是不是模拟器上显示来电了?接听/挂断和实体手机一样。
只要把第三条命令改成:
sms send 15555218135 Hello,this is a Message.
2.段错误
### WARNING: could not find /etc/localtime or /usr/share/zoneinfo/localtime. unable to determine host timezone
我开始在启动emulator的时候经常报这个错误,加上-timezone "Asia/ShangHai"之后就可以了,后来分析,原来是因为emulator在启动的时候会查找宿主机上面的/etc/localtime文件,在我的宿主机上面[debian]上面没有发现/etc/localtime文件。
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime就可以了。
相关阅读 更多 +