Android发送邮件应用程序

时间:2010-10-07 12:33:29

标签: android

     I use the following send mail application  in android from           

Sending Email in Android using JavaMail API without using the default/built-in app

    and got the  warning 
    10-07 17:58:22.762: INFO/SSLSocketFactory(925): 
    Using factory org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl@4007ed70 
  10-07 17:58:23.063: DEBUG/NativeCrypto(925): SSL_OP_NO_SSLv3 is set
    10-07 17:58:23.573: INFO/global(925): Default buffer size used in         
   BufferedOutputStream constructor. It would be better to be explicit if an 8k   
   buffer     is required.

   10-07 17:58:23.573: INFO/global(925): Default buffer size used in 
    BufferedInputStream constructor. It would be better to be explicit if an 8k   
   buffer  is required.

   10-07 17:58:24.172: INFO/global(925): Default buffer size used in BufferedReader constructor. It would be better to be explicit if an 8k-char buffer is required.

请帮我找到解决方案

1 个答案:

答案 0 :(得分:5)

设置缓冲区大小(默认为8K)。

我用的是:

//( set to 2K in this case)
BufferedReader in = new BufferedReader(inputstream, 2*1024);

然后你不会得到那个Android警告并且我也希望节省内存。