SQLite with ActionScript (AIR) for all users

I would like to save the settings for an AIR application in a local SQLite database. Wherever I read, it is recommended to use File.applicationStorageDirectoryto save the database file.

My problem is that in most cases, the AIR application is first launched by the administrator, who configures and configures the application (and saves the settings in the database), and then is used by other users. And what would I like to know if it is possible to save the database in a place from which each user can download it? As I understand it, File.applicationStorageDirectory points to the user directory?

It is possible, it is also possible for administrators to set the correct permissions and so on, but I do not want to complicate the installation ...

+3
source share
2 answers

I think you're wrong.

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filesystem/File.html?filter_flex=4.1&filter_flashplayer=10.1&filter_air=2

The File class includes static properties that allow you to reference commonly used locations in directories. These static properties include:

* File.applicationStorageDirectorya storage directory unique to each installed AIR application

Accordingly, applicationStorageDirectory is unique to each application; not unique to each user.

Is your experience different?

+2
source

This is not a recommended method, but see if you are using File.applicationDirectory(a folder containing installed applications.).

, File.applicationStorageDirectory , 1 ( ), , .

, SQLite "c:\AppData\Data.db".

0

Source: https://habr.com/ru/post/1766782/


All Articles