French Liste des sms

Bonjour,
cette fois-ci, voici mon problème:
J'ai fait un programme pour envoyer des sms, et je ne trouve pas comment les recevoir. J'ai essayé de les mettre dans une listview. Voici le code:
B4X:
'Activity module
Sub Process_Globals
   'These global variables will be declared once when the application starts.
   'These variables can be accessed from all modules.

End Sub

Sub Globals
   'These global variables will be redeclared each time the activity is created.
   'These variables can only be accessed from this module.
   
   Dim Button1 As Button
   Dim Button2 As Button
   Dim ListView1 As ListView
   Dim ListSMS As SmsInterceptor
   Dim SMSMessage As SmsMessages
   Dim list1 As List
   Dim PhoneSMS1 As PhoneSms
End Sub

Sub Activity_Create(FirstTime As Boolean)
   Activity.LoadLayout("ListSMS")
   ListSMS.Initialize("ListSMS")
   SMSMessage.GetAll
   list1 = SMSMessage.GetAllSince(DateTime.Add(DateTime.Now, 0, 0, -7))
   For i = 0 To list1.Size - 1
    Dim Sms As Sms
    Sms = list1.Get(i)
    Log(Sms)
Next 
ListView1.AddSingleLine(list1)
End Sub

Sub Activity_Resume

End Sub

Sub Activity_Pause (UserClosed As Boolean)

End Sub
 
Top