Pergunta

Is it possible to put several AIR applications under the same folder in C:\%username%\AppData\Roaming?

I know it uses id to create a folder for each app there to store data (applicationStorageDirectory), but that id doesn't allow spaces and I googled and couldn't find anything on how to add a subfolder to that path. There must be a way for publishers to keep all their apps under the same folder, or is this feature missing in AIR completely?

Foi útil?

Solução

No, you cant have multiple applications sharing the same applicationStorageDirectory - the folder name is taken from the application id, and each app id should be unique.

If you want multiple apps to use the same folder, use File.documentsDirectory or File.userDirectory (or even File.desktopDirectory if you like).

Also, the text of your question suggests you have spaces in your app id. The recommended format for app id's is "reverse domain name" - this will mean the id never contains spaces (which is a good thing) and that you can be reasonably confident that no one else has released an app with the same id (again, a good thing).

Lets say your app is called "SuperApp" and you have a domain name "www.superdomain.com" - you would give your app an id of "com.superdomain.superapp"; thats the domain name in reverse (without the www) followed by the application name.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top