HyperNext Android Creator

Finding help on HAC => Files => Topic started by: Godzilla on September 18, 2012, 06:26:55 AM

Title: Access private files in app's hidden area
Post by: Godzilla on September 18, 2012, 06:26:55 AM
Is there a way to access, create and operate on files within the private area of my app so others cannot see them?
I don't mean on the sdcard but in the hidden area.
Title: Re: Access private files in app's hidden area
Post by: Malkom on September 18, 2012, 09:43:26 AM
Hello

Yes, to do this you will need the full path to the private folder - use the InternalPathFN function
This gives the path without the trailing '/'.

eg
Code: [Select]
Put InternalPathFN into fpath
Once you have this path then your app can use HAC's file commands just as if the folder fpath were a standard folder.

By the way, there is also DatabasePathFN - this gives the path to the database folder inside the above mentioned private folder.

Malkom



Title: Re: Access private files in app's hidden area
Post by: Godzilla on September 19, 2012, 07:25:43 AM
thank you, I'll try that out.