android - How is it possible to pass the getFilesDir() to Files object :as getFilesDir() returns path of the dir? -


i new java ,so please explain me stuff:

res = getresources();      try {         io.transferfiles(getfilesdir(),res);     } catch (ioexception e) {      } 

the above code in oncreate().

class io{ public static void transferfiles(file base, resources res) throws ioexception {     //statement         }  }} 

so question is, happen if pass getfilesdir() method file object (here base). (please provide links if can learn more)

ref: example returns absolute file path of internal storage of device no permission required. when u want read file using or write file need declare <uses-permission> in manifest file. example

internal , external file storage


Comments

Popular posts from this blog

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -