Hi,
I can display a list of all files on the SD card using the following code:
uint xpos = 100;
uint ypos = 100;
uint nextpic = 0;
string[] fileList;
if (sdCard.IsCardInserted)
{
sdCard.MountSDCard();
GT.StorageDevice sdStorage = sdCard.GetStorageDevice();
fileList = sdStorage.ListRootDirectoryFiles();
nextpic = 0;
for (int i = 0; i < fileList.Length; i++)
{
xpos = 3;
ypos = 3 + ((uint)nextpic * 20);
display.SimpleGraphics.DisplayText(fileList[i], Resources.GetFont(Resources.FontResources.NinaB), GT.Color.Blue, xpos, ypos);
nextpic = nextpic + 1;
}
}
But can I then select one of the files shown on the screen to open? E.g. show a list of all image files, and then tap on one of them to open up the image and display it on the screen?
Thanks for any help.