packing folders of images

macerau

Member
Licensed User
Longtime User
I need to mount a directory tree with figures of the same name, as below, is part of this. Apk for installation along with images and some form of access via a program?
I did the routine down and realized that the images are not installed.

If File.Exists(File.DirAssets & "/WAYTEK/BMP/PO/" ,"a1.gif") = True Then
Log("File.DirAssets OK")
Else
Log(File.DirAssets)
End If
If File.Exists(File.DirDefaultExternal & "/WAYTEK/BMP/HM/" ,"A2.GIF") = True Then
Log("File.DirDefaultExternal OK")
Else
Log(File.DirDefaultExternal)
End If
If File.Exists(File.DirInternal & "/WAYTEK/BMP/HM/" ,"A2.GIF") = True Then
Log("File.DirInternal OK")
Else
Log(File.DirInternal)
End If
If File.Exists(File.DirInternalCache & "/WAYTEK/BMP/FZ/" ,"A2.GIF") = True Then
Log("File.DirInternalCache OK")
Else
Log(File.DirInternalCache)
End If
If File.Exists(File.DirRootExternal & "/WAYTEK/BMP/FZ/" ,"A2.GIF") = True Then
Log("File.DirInternalCache OK")
Else
Log(File.DirInternalCache)
End If
http://www.b4x.com/forum/attachment.php?attachmentid=14000&stc=1&d=1349121767
 

Attachments

  • fig.jpg
    fig.jpg
    18.2 KB · Views: 419
Last edited:

macerau

Member
Licensed User
Longtime User
Nice work!
I know this because the size of the apk soared.
have any tips on how I can access one of these images,
ex: LoadBitmap (File.DirRootExternal & "/ waytek / bmp / po /", "a1.gif"), only the former. I know it does not work.
My question is: LoadBitmap (????? & "/ waytek / bmp / po /", "a1.gif")
 

macerau

Member
Licensed User
Longtime User
Hi Erel,
I try
mpic.Bitmap = LoadBitmap( "Assets\waytek\bmp\po\","a1.gif" )
mpic.Bitmap = LoadBitmap( File.DirAssets & "\waytek\bmp\po\","a1.gif" )
mpic.Bitmap = LoadBitmap( File.DirAssets & "/waytek/bmp/po/","a1.gif" )
mpic.Bitmap = LoadBitmap( File.DirAssets & "waytek/bmp/po/","a1.gif" )
mpic.Bitmap = LoadBitmap( File.DirAssets & "/waytek/bmp/po","a1.gif" )
mpic.Bitmap = LoadBitmap( "/waytek/bmp/po/","a1.gif" )
mpic.Bitmap = LoadBitmap( "\waytek\bmp\po\","a1.gif" )
and nothing's certain
but in .apk
but in apk appears file with path assets\waytek\bmp\po\a1.gif
may give some idea of how to find this file via program?
Thanks
Raul
 
Top