Can u please, tell me how to create a simple file on mobile? I got access denied exception when trying to create file.
Please help me-------
There are a lot of issues around filesystem access. I am assuming you are use JSR-75 PIM with the FileConnector.
The location of usable writable areas differ by device (big surprise there). However you can put a couple strategies in place that address most phones. You need to check for a "priviate" type of root file system, using the FileSystemRegistry.listRoots().
Sometimes you have to go to an external SD card, or write in an existing folder.
Usually file:///c:/photos or file:///c:/videos work for storing information.
That should be enough information so you can figure it out. :)
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.