Okay I'm using pop3 for a gmail account in my application.
It gets to this sub but when it reaches the "For i = 0 to..." it skips it as there is no messages in the map. I do not understand as in the gmail account there are many messages. Any ideas?
B4X:
Sub POP_ListCompleted (Success As Boolean, Messages As Map)
If Success Then
'If the list completed was a success then all the messages in the map of messages will be downloaded
For i = 0 To Messages.Size - 1
POP.DownloadMessage(Messages.GetKeyAt(i), True) 'Download all messages
Next
'The number of files recieved should be exactly 181
If FilesRecieved = 181 Then
Msgbox("Data Version: " & File.ReadString(File.DirDefaultExternal, "DataVersion"),"Files Recieved Successfully")
Activity.finish
StartActivity(Main)
Else
Msgbox("An error has occured, an incorrect amount of files has been recieved, re-send the data.", "Files Recieved Unsuccessfully")
End If
Else
Msgbox("An error has occurred", "")
End If
POP.Close 'The connection will be closed after all messages are downloaded
End Sub
It gets to this sub but when it reaches the "For i = 0 to..." it skips it as there is no messages in the map. I do not understand as in the gmail account there are many messages. Any ideas?