Dim Grabbed As String
LocalFiles = File.ListFiles (localDir) 'LocalDir is my droid inbox directory
If LocalFiles.Size > 0 Then
For i = 0 To LocalFiles.Size-1
Activity.Title = LocalFiles.Size & " Returns Waiting"
Grabbed = LocalFiles.Get (i)
Next
End If
ListView1.Visible = False 'hide the listview which is my menu page
lbl1.Visible = True 'show the text label for text file
If File.Exists(localDir,Grabbed) Then
lbl1.Text = File.ReadString(localDir, Grabbed) ' read the first text file
File.Delete(localDir, Grabbed) 'delete the file after it is read
End If
End If