从上周一开始,琢磨着做一个类似G-Mail那样的手机客户端。 我在模拟器上和Nokia N70,MOTO A1200 (手写)上测试通过(注一)。 这个程序的核心放在UI的设计上,UI设计还是继承自以前的自己定义的框架。这次又增加了 启动界面 注一:关于手写笔,严格上说整个系统是半实现手写笔。一般手写笔手机没有左右软键,所以实现了左右软件的手写笔模拟 注二:需要用到输入法的控件是通过一个高级控件和我这个控件相互交互的,详见以下文章; |
| 增加了多个帐号的支持。 1.目前系统支持3个帐号。 2.增加对POP/SMTP SSL的支持。 3 阅读信内容时候增加转发到短信功能。 在调试过程中发现有一个非常隐藏的问题,就是通过HTTP通讯时得到的OutputStream,如果象里面写数据时,有些手机(LENOVO-S9)调用out.flush(),就可能导致堵塞的现象。后来在网上找到资料说有些手机确实有这个问题,开始以为我的手机拨号有问题呢。 下面是原文: http://java2me.org/forum/viewtopic.php?p=340&sid=ce30a6cc0fdec3b619051f0e52e449c6 /* The call to flush() uses a feature of HTTP 1.1 that allows data to be sent in smaller loads. When calling flush() or sending a large amount of data (in version 1.0.3) chunked encoding is used. If you are using an HTTP 1.0 server or proxy server the chunked transfer may cause problems. You can avoid the chunking behavior with small transactions by just calling close() where you were using flush(). For larger transactions you need to buffer your output so a single write() and close() are issued to the output stream. */ 增加几个快捷键操作. 欢迎用手机下载 http://211.136.85.162/onl/m-mail.jad |