i'm running javamail on android device. i'm using the jar files suggested in this question's answer:
Sending Email in Android using JavaMail API without using the default/built-in app
when i'm causing a connection lost from the android device (turning on\off wifi, setting airplane mode) every function called, that accessing the javamail socket, is not returning. example of stuck function (i'v tried to call functions on the FOLDER objects and on STORE objects:
close()
forceClose()
getType()
no exception is being thrown (tried to throw exception in the scope - it get caught) no error log is shown on the logcat
it is important to mention the "removeMessageCounterLister" function works fine and the thread not getting stuck after the call
i have jdk7 if it matters.
thank you so much for your answer
update: this problem doesn't have any relation the timeout connections. i'v set the timeout and connection timeout params and they only affect the idle() function.
when the thread get stuck the message that the javamail log is writing is "DONE"