I am very new to LiveCode and all development. I have read through as much info as I can for now (my head is swimming!) I have decided to jump in and get started with my first androidapp, and learn as I work starting today. Right now, I have far more questions than answers

I would like to create a scrolling list field which can allow the user to select from a list of files and launch each file from within the app. I need the be able to close the file after they have viewed it (and print but that can come later):
I have set up the scrolling list with the correct dimensions and have populated it with names corresponding to 3 PDF files which are contained in a file named DocumentsLTR, which is contained in the same file as the main stack is saved. The files are named:
LTRTestFile1
LTRTestFile2
LTRTestFile3
I am currently implementing a scrolling list menu for videos (work in progress!), and wondered if I could use the same tutorial and swap the videos for files? The problem is that I am finding it a bit confusing, as it makes reference to Videos and Video Files etc and I am finding it difficult to differentiate what is a variable and what is not. Here is a link to the tutorial: http://lessons.runrev.com/m/754/l/6316- ... files-menu
And here is my card script "converted" for opening files rather than watching videos.
I have not tested this yet (having trouble with both my emulator and getting my Galaxy S4 to behave for testing on the device (that's another story!). I wonder if someone with a keen eye and a lot more knowledge than me could take a look and tell me if it will be possible to convert this script to open files instead of videos, and also if I am on the right track / have made any ridiculous errors! Any help would be much appreciated! Once I have the menus functioning I will feel like I am starting to win the battle!
Thanks in advance,
Prue. (card script below, and the button script is below that)
on preOpenCard
_## Load the file lister
_uiPopulateFileLister
_
end preOpenCard
command uiPopulateFileLister
_## Get list of Document files in DocumentsLTR folder
_put GetDocumentsLTRFiles() into theFiles
_
_## Assign the list of files to the list field (our menu)
_set the text of field "File Lister" to theFiles
_
end uiPopulateFileLister
function GetDocumentTRFFiles
_## Get the path to the "DocumentsLTR" folder on disk
_put GetPathToFolder("DocumentsLTR") into theFolder
_
_## Get list of files in the folder
_put GetFilesInFolder(theFolder) into theFiles
_
_## Return list of files
_return theFiles
end GetDocumentsLTRFiles
function GetPathToFolder pFolderName
_## Retrieving paths to folders that are relative to the stack can be tricky.
_
_## Determine the location of this stack on disk
_put the filename of this stack into theFolder
_
_## Folder paths use "/" to separate each folder in the path
_## By setting the itemDelimiter to slash we can refer to
_## individual sections of the path by the 'item' token in revTalk.
_set the itemDelimiter to slash
_
_## When you build a standalone version of this stack on OS X the stack
_## file will be located in side of an application bundle. These next few
_## lines strip the application bundle portion of the path off.
_if the platform is "MacOS" then
__if theFolder contains ".app/Contents/MacOS" then
___## Delete the last three items of the path that are specific
___## to the application bundle
___delete item -3 to -1 of theFolder
__end if
_end if
_
_## Replace the last item in theFolder with the 'pFolderName' parameter
_put pFolderName into the last item of theFolder
_
_## Return the complete path
_return theFolder
end GetPathToFolder
function GetFilesInFolder pFolder
_## This function uses the default folder to get a list of files
_
_## Store the original default folder so we can return to it later
_put the defaultfolder into theOrigDefaultFolder
_
_## Change the default folder to the folder passed into the function (pFolder)
_set the defaultfolder to pFolder
_
_## 'the files' always returns the files in the 'default folder'
_put the files into theFiles
_
_## Restore the original 'default folder' setting
_set the defaultfolder to theOrigDefaultFolder
_
_## Filter out invisible files (files that start with a "." in their name) from 'theFiles' variable
_filter theFiles without ".*"
_
_## Return the list of files to the caller of the function
_return theFiles
end GetFilesInFolder
command uiLoadSelectedDocument
_## Get the name of the document selected in the document menu
_put the selectedtext of field "File Lister" into theDocumentName
_put "Documents /" & theDocumentName into theDocumentFile
_
_## Set 'the filename' property the player object to the relative document path
_## Revolution will locate the video as long as the "Documents" folder is
_## alongside the stack file or the application executable.
_set the filename of File "My Document" to theDocumentFile
_
end uiLoadSelectedDocument
And for the button script:
on selectionChanged
uiLoadSelectedDocument
end selectionChanged