Italian Problema con file.copy

selvent80

Member
Licensed User
Longtime User
buonasera, sono giorni che tento e ritento a copiare un file dall'asset al dir.internal ma non ci riesco e vorrei sapere dove sbaglio. Ecco il codice:

Sub Activity_Create(FirstTime As Boolean)
'Do not forget to load the layout file created with the visual designer. For example:
Activity.LoadLayout("start")
t.Initialize("t",100)
If FirstTime Then
If File.Exists(File.DirInternal,"scuola_1.pdf")=False Then
File.Copy(File.DirAssets,"scuola_1.pdf",File.DirInternal,"scuola_1.pdf")
End If
End If
t.Enabled=True
End Sub
 

selvent80

Member
Licensed User
Longtime User
ciao max, ho provato anche come c'era nel link ma niente.
posto il log che non ci capisco una mazza.

Installing file.
GC_CONCURRENT freed 398K, 14% free 12671K/14663K, paused 4ms+12ms, total 68ms
GC_CONCURRENT freed 435K, 14% free 12655K/14663K, paused 7ms+2ms, total 37ms
GC_CONCURRENT freed 402K, 14% free 12663K/14663K, paused 14ms+6ms, total 47ms
GC_CONCURRENT freed 434K, 14% free 12663K/14663K, paused 13ms+3ms, total 37ms
GC_CONCURRENT freed 410K, 14% free 12663K/14663K, paused 11ms+2ms, total 24ms
GC_CONCURRENT freed 426K, 14% free 12671K/14663K, paused 18ms+4ms, total 51ms
GC_CONCURRENT freed 426K, 14% free 12663K/14663K, paused 3ms+4ms, total 30ms
GC_CONCURRENT freed 410K, 14% free 12655K/14663K, paused 12ms+2ms, total 22ms
GC_CONCURRENT freed 410K, 14% free 12671K/14663K, paused 4ms+15ms, total 45ms
GC_CONCURRENT freed 450K, 14% free 12663K/14663K, paused 15ms+6ms, total 55ms
GC_CONCURRENT freed 402K, 14% free 12655K/14663K, paused 2ms+1ms, total 20ms
GC_CONCURRENT freed 418K, 14% free 12655K/14663K, paused 5ms+2ms, total 34ms
GC_CONCURRENT freed 426K, 14% free 12663K/14663K, paused 14ms+5ms, total 49ms
GC_CONCURRENT freed 410K, 14% free 12655K/14663K, paused 3ms+2ms, total 29ms
GC_CONCURRENT freed 410K, 14% free 12655K/14663K, paused 12ms+2ms, total 25ms
GC_CONCURRENT freed 136K, 12% free 12926K/14663K, paused 12ms+1ms, total 21ms
GC_CONCURRENT freed <1K, 10% free 13336K/14663K, paused 12ms+2ms, total 23ms
GC_CONCURRENT freed <1K, 7% free 13748K/14663K, paused 2ms+2ms, total 17ms
GC_FOR_ALLOC freed <1K, 5% free 14167K/14855K, paused 17ms, total 17ms
GC_FOR_ALLOC freed 1529K, 15% free 13162K/15367K, paused 11ms, total 11ms
GC_CONCURRENT freed 921K, 18% free 12655K/15367K, paused 12ms+2ms, total 28ms
GC_CONCURRENT freed 418K, 18% free 12655K/15367K, paused 11ms+2ms, total 26ms
GC_CONCURRENT freed 217K, 17% free 12823K/15367K, paused 11ms+2ms, total 24ms
GC_CONCURRENT freed 579K, 18% free 12655K/15367K, paused 12ms+2ms, total 23ms
GC_CONCURRENT freed 410K, 18% free 12655K/15367K, paused 12ms+1ms, total 24ms
GC_CONCURRENT freed 394K, 18% free 12655K/15367K, paused 3ms+1ms, total 22ms
PackageAdded: package:b4a.example
 
Top