Skip to main content
Participant
July 10, 2013
Question

Android app access to network file location

  • July 10, 2013
  • 0 replies
  • 322 views

Hi all,

I'm developing a simple drawing program on Air for Android, and the brief is to save the generated files into a network shared directory.

The device itself (outside of the Air app) can access and write to the network location (currently my dev machine set up on a specific IP address) so I don't *think* it's a permission issue. The code is as follows:

mFileReference = new File("file:///\\192.168.0.13/Users/Public/Documents");

trace(mFileReference.nativePath);

The above code throws an error 2004.

My question is: can this work within Air for Android's security structure? Should I give up trying to write across the network and use .applicationStorageDirectory (not ideal as another app on a different machine has to read in the images created)? Any help would be appreciated.

Thanks!

This topic has been closed for replies.