I have a program that uses "SetRawWritePath" since it is a photo printing program and you need to search for photos on the phone (the command "ShowChooseImageScreen" does not work since it only loads the photos one at a time). Now "SetRawWritePath" has been removed and alternatively they tell you to use "OpenRawFolder" but it doesn't work.
If we use it from AppGameKit Player on some phones, it works, but when compiling it stops working. "OpenRawFolder" does not work and consequently none of the "Directory Raw" commands.
I put a simple code so you can check the error.
If you want to try the Android printing program, you can find it on the Play Store and it's called "Kiosco Imafoto", in case you're curious.
code to test
// Project: prubusca
// Created: 20-08-07
// show all errors
SetErrorMode(2)
// set window properties
SetWindowTitle( "Prubusca" )
SetWindowSize( 1024, 768, 0 )
SetWindowAllowResize( 1 ) // allow the user to resize the window
// set display properties
SetVirtualResolution( 1024, 768 ) // doesn't have to match the window
SetOrientationAllowed( 1, 1, 1, 1 ) // allow both portrait and landscape on mobile devices
SetSyncRate( 30, 0 ) // 30fps instead of 60 to save battery
SetScissor( 0,0,0,0 ) // use the maximum available screen space, no black borders
UseNewDefaultFonts( 1 )
permission$ = "WriteExternal"
if ( CheckPermission( permission$ ) <= 0 )
RequestPermission( permission$ )
while( CheckPermission( permission$ ) = 1 )
Sync()
endwhile
endif
global carEsta as integer
global TotalSub as integer
global cadenaCarpeta as integer
global nombreUC$ as string
Carpeta$="/sdcard"
idfol=OpenRawFolder("raw:"+Carpeta$) //marca la direccion de la carpeta de busqueda
CarEsta=GetRawFolderNumFolders(idfol)
nombreUC$=GetRawFolderFolderName(idfol,CarEsta-1)
do
print(GetRawFolderNumFolders(idfol))
Print( nombreUC$ )
Sync()
loop
Remember that it works from the program to check android "AGK Player", when it does not work is when compiling it.
I need to know if anyone has gotten these commands to work on Android and how they did it.
If you have the same problem, please say so here to see if we can get it checked and fixed. Thanks in advance to everyone