Santman, many of us are working well with AppGameKit (both Tier 1 and Tier 2) and think that it is a good product. Yes, there are some bugs and they are being worked on. And they are also continuing to add capability.
I'm going to try and look at each of the issues you raised in your first post.
1. Splash screen does not work
I just ran a couple of tests with AGKSplash.png.
For Android, if the file (spelled exactly AGKSplash.png) is in the <yourandroidproj>/assets directory, it displays when the app starts up.
I rebuilt both my Tier 1 and Tier 2 apps, refreshed and ran in Eclipse and then downloaded the apks to an Android 3.2 and an Android 4.1 device and the splash showed for all variations.
2.Set sync rate - appears to do nothing
I tested this at the same time as the splash and it worked fine in all variations.
3.Getimage and 4.Saveimage - please provide sample of the code you used. I have not worked with these commands.
5.Getmusicplaying - this is a known issue for Android and has been reported. But, you appear to have found a way to avoid it. I will share that information.
Quote: "i.e playing via assigning a name to the track"
How are you trying to assign a name? All commands take integer values as identifiers for objects. You can use an integer variable.
6.Setfolder - does nothing
This command will not allow you to set an absolute path, in case that is what you are trying.
Having said that, I tested this code on both my Android devices (see the comments for how they performed):
// using percentage system
// directory structure:
// windows -
// <projdir>
// <projdir>/folder_a
// <projdir>/folder_b
// <projdir>/media
// <projdir>/media/folder_a
// <projdir>/media/folder_b
// android -
// <projdir>
// <projdir>/assets
// <projdir>/assets/folder_a
// <projdir>/assets/folder_b
// <projdir>/assets/media
// <projdir>/assets/media/folder_a
// <projdir>/assets/media/folder_b
// add the buttons
AddVirtualButton(1,15,80,20)
AddVirtualButton(2,85,80,20)
// not using SetCurrentDir/SetFolder at all showed:
// windows: folder_b, folder_a
// android: <nothing>
// using SetCurrentDir("/media") showed:
// windows: folder_b, folder_a
// android: <nothing>
//SetCurrentDir("/media")
// using SetCurrentDir("") on showed:
// windows: media, folder_b, folder_a
// android: media
//SetCurrentDir("")
// using SetFolder("/media") showed:
// windows: worked the same as with no SetCurrentDir/SetFolder command
// android: worked the same as with no SetCurrentDir/SetFolder command
//SetFolder("/media")
// using SetFolder("") showed:
// windows: worked the same as with SetCurrentDir("") command
// android: worked the same as with SetCurrentDir("") command
SetFolder("")
// initialise the variable
folder$ = ""
Do
print("Click right button to exit")
print("Click left button for folder")
if GetVirtualButtonPressed(1) then end
if GetVirtualButtonPressed(2)
if folder$ = ""
folder$ = GetFirstFolder()
else
folder$ = GetNextFolder()
endif
endif
print("folder='"+folder$+"'")
Sync()
Loop
Issue #398 in the Google list has been confirmed as a bug and the code above supplied to prove it.
8.Getfirstfile/Getnextfile
This worked fine, even creating files. Different uses of SetFolder and SetCurrentDirectory had different affects. This is the code I used to test (the comments again show the affect of the Set<x> commands):
// using percentage system
// directory structure:
// windows -
// <projdir>
// <projdir>/media
// android -
// <projdir>
// <projdir>/assets
// <projdir>/assets/media
// files in /media
// bluesun.png
// bytecode.byc
// Icon-128.png
// player.png
// add the buttons
AddVirtualButton(1,15,80,20)
AddVirtualButton(2,85,80,20)
AddVirtualButton(3,50,80,20)
// not using SetCurrentDir or SetFolder at all showed:
// windows: it cycled through the list
// android: it cycled through the list
// after clicking the middle button
// windows: created file in My Documents/AGK/BasicTest/media, and displayed when listing
// android: same as windows
// using SetCurrentDir("/media") showed:
// windows: worked the same as with no SetCurrentDir/SetFolder command
// android: worked the same as with no SetCurrentDir/SetFolder command
//SetCurrentDir("/media")
// using SetCurrentDir("") showed:
// windows: showed the files in the directory with the app executable and created
// the file in the My Documents/AGK/BasicTest directory (and showed in list)
// android: showed files like 'Arial.png', the ones created when app is run and created
// the file in apparently the same directory and showed it
//SetCurrentDir("")
// using SetFolder("/media") showed:
// windows: worked the same as with no SetCurrentDir/SetFolder command
// android: worked the same as with SetCurrentDir("") command
//SetFolder("/media")
// using SetFolder("") showed:
// windows: worked the same as with SetCurrentDir("") command
// android: worked the same as with no SetCurrentDir/SetFolder command
//SetFolder("")
// initialise the variable
file$ = ""
Do
print("Click right button to exit")
print("Click middle button to create a file")
print("Click left button for file")
if GetVirtualButtonPressed(1)
// delete the file
DeleteFile("myfile.txt")
end
endif
if GetVirtualButtonPressed(2)
if file$ = ""
file$ = GetFirstFile()
else
file$ = GetNextFile()
endif
endif
if GetVirtualButtonPressed(3)
OpenToWrite(1, "myfile.txt", 0)
WriteLine(1, "hello" )
CloseFile(1)
while GetPointerPressed() = 0
print("Created 'myfile.txt'")
print("Click anywhere to continue")
sync()
endwhile
endif
print("file='"+file$+"'")
Sync()
Loop
9.Makefolder
This also worked reasonably well, depending on SetCurrentDir/SetFolder. This was my test code (see comments for results):
// using percentage system
// directory structure:
// windows -
// <projdir>
// <projdir>/media
// android -
// <projdir>
// <projdir>/assets
// <projdir>/assets/media
// add the buttons
AddVirtualButton(1,15,80,20)
AddVirtualButton(2,85,80,20)
AddVirtualButton(3,50,80,20)
// not using SetCurrentDir or SetFolder at all showed:
// windows: initially showed the two subdirs in /media
// android: did not display any directories
// after clicking the middle button
// windows: created directory My Documents/AGK/BasicTest/media/mydir
// showed it when listing directories
// mydir did not disappear when app exited (it was there when run next time)
// android: mydir directory created somewhere
// it now appears when displaying directories
// mydir did not disappear when app exited (it was there when run next time)
// using SetCurrentDir("/media") showed:
// windows: worked the same as with no SetCurrentDir/SetFolder command
// android: worked the same as with no SetCurrentDir/SetFolder command
//SetCurrentDir("/media")
// using SetCurrentDir("") showed:
// windows: initially showed media, folder_b, folder_a
// created mydir in main project directory (where BasicTest.exe exists)
// mydir did not disappear when app exited (it was there when run next time)
// android: initially showed the media directory when listing directories
// created the mydir directory (apparently in the same place as media)
// mydir did not disappear when app exited (it was there when run next time)
//SetCurrentDir("")
// using SetFolder("/media") showed:
// windows: worked the same as with no SetCurrentDir/SetFolder command
// android: worked the same as with no SetCurrentDir/SetFolder command
//SetFolder("/media")
// using SetFolder("") showed:
// windows: initially displayed media, folder_b, folder_a (where BasicTest.exe exists)
// created directory My Documents/AGK/BasicTest/media/mydir
// mydir did not disappear when app exited (it was there when run next time)
// android: initially showed the media directory when listing directories
// created the mydir directory (apparently in the same place as media)
// mydir did not disappear when app exited (it was there when run next time)
//SetFolder("")
// initialise the variable
folder$ = ""
Do
print("Click right button to exit")
print("Click middle to create folder")
print("Click left button for folder")
if GetVirtualButtonPressed(1)
end
endif
if GetVirtualButtonPressed(2)
if folder$ = ""
folder$ = GetFirstFolder()
else
folder$ = GetNextFolder()
endif
endif
if GetVirtualButtonPressed(3)
// now create it
iret = MakeFolder("mydir")
if iret = 1
OpenToWrite(1, "mydir/myfile.txt", 0)
WriteLine(1, "hello" )
CloseFile(1)
while GetPointerPressed() = 0
print("Created 'mydir' directory")
print("Created 'myfile.txt'")
print("Click anywhere to continue")
sync()
endwhile
else
while GetPointerPressed() = 0
print("Failed to create 'mydir' directory")
print("Click anywhere to continue")
sync()
endwhile
endif
endif
print("folder='"+folder$+"'")
Sync()
Loop
10.Functions - does not seem to allow variables to be passed back
What do you mean by this? If you mean that when you set a variable in the function that is not declared as Global but for which there is a variable of the same name outside of the function, that the value does not get set. You are correct and that is the proper behavior. The Basic language has a proper understanding of local and global variable scoping.
If you mean that a variable passed into a function and then changed in the function does not 'keep' the changed value after the function call. That is also correct behavior. Basic passes variables by value, not by reference.
If you do not mean either of those, what do you mean?
11. Yup, I can't find where the files are in a file manager/explorer either. But, the commands work and the app knows where everything is.
So, aside from the music command, and the getimage and saveimage commands (which need some simple examples that you know not to work), all these other commands work fine.
Cheers,
Ancient Lady
AGK Community Tester