File.DirInternalCache

dmtulsa

Member
Licensed User
Longtime User
A few questions about File.DirInternalCache

1. Where exaxtly is it located?
2. Can it be seen from the life manager
3. anything special abut using it?

If I use tmpdir = File.DirRootExternal & "/UsiManual/" all works ok.

if I use tmpdir = File.DirInternalCache & "/UsiManual/" I get an error

if I use tmpdir = File.DirInternalCache I can step passed this with no error but then I get an error if I try to open the dile (File not found) in StartActivity(zz)

Code:
B4X:
      Dim nom_file As String
      nom_file = lastDir & Value   'path to server file
      'tmpdir = File.DirRootExternal & "/UsiManual/"  ' File.DirInternalCache
      'tmpdir = File.DirInternalCache & "/UsiManual/"  ' File.DirInternalCache
      ret = File.Exists(tmpdir,Value)
      If ret = False Then usismb.DownloadFile(lastDir,Value,tmpdir,Value)
            
      ''Msgbox(nom_file,"nom fichier")
      nom_file = "file:///" & tmpdir &  Value
      Dim zz As Intent 'Requires a reference to the Phone library
      zz.Initialize(zz.ACTION_VIEW, nom_file)
      zz.SetType("application/pdf")
      'zz.WrapAsIntentChooser("Choose PDF Viewer")
      StartActivity(zz)

Thank you
Doug
 
Last edited:
Top