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
Comments
Post a Comment