ADF Mobile: Read-write access to local DB using SQLite

I am developing an android mobile app using ADF Mobile. To create the .db file i am choosing the location as
            String Dir = AdfmfJavaUtilities.getDirectoryPathRoot(AdfmfJavaUtilities.ApplicationDirectory); 
            String connStr = "jdbc:sqlite:" + Dir + "/CONTRACTS.db";
The problem is that when i want to access this db from another app, it gives read-only permission. I am unable to perform any write operations.
Can someone suggest how to change these permissions OR give an alternate path to save the .db file(perhaps, a directory)....that could be common to both the apps?
-Thanks in advance

Hi.
There is no straightforward way to accomplish this even with a standard iOS or Android application. Some hacks exist for each platform, but could result in weaker security in some cases. My recommendation would be to have separate databases for each application, and to implement server-side synchronization mechanisms for data that must be shared between the two. That said, you didn't say much about your use case. Care to provide a bit more detail?
Best Regards,
Frédéric Desbiens
ADF Product Manager
Twitter: @BlueberryCoder
blog: http://blogs.oracle.com/blueberry

Similar Messages

  • How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    How do I resolve this error message? The iPhoto library is on a locked volume.  Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library.

    Hi j,
    I don't know if this will work, but I'd try logging in to an admin account, going to your main library (not user library), opening it, opening Application Support, selecting iPhoto, hold down the command key and press i, click on the lock in the lower left, entering the password and making sure you have Read & Write privileges for System and Admin.

  • How do I allow users to create folders in a shared folder where we all then have read/write access to those new folders?

    I have three users who need to access a particular folder on one of our other Macs. The folder resides on the desktop of that particular Mac and it is set as "shared" with all of our accounts set to access the folder. When a user creates a new subfolder in that shared folder, the permissions are instantly set to allow the creator read/write access but the other users are only allowed read-only access. Is there a way to set the permissions so that any new folder created in that shared folder automatically gives read/write access to all accounts who are authorized access to that shared folder?

    You should be able to take the permissions you have set and "apply to enclosed items." I am trying to attach a picture of what this looks like so my apologies if it does not work.
    Highlight your folder you want and go to File>Get Info or command+I and at the bottom where it has Sharing and Permissions, click the lock button to authenticate. Click the gear and click "apply to enclosed items". See if that works.

  • How can I regain Full Read Write access on my BU Drive?

    Prior to Yosemite upgrade, I had Read Write access to my BU hard drive and now I don't !! I can't update files on my back up drive.  Help!  I tried looking through help files and I am listed as an administrator on my iMac.

    When you get info on the external drive, at the very bottom is a box you can check
    "Ignore ownership on this volume"...
    If you check that, then see if you can delete and move things around.
    If that doesn't work then try clicking on the + sign and adding you as an admin so you can Read & Write.

  • Read/write access on external drive set to none; can't see drive to change

    I was learning about profiles and permissions and set the Read/write access on my external drive to none. I wanted to protect my guests from accidentally viewing private files. I thought I was doing it for that profile only, but now I can't see the drive to change it back. I have already tried using the disk utitility and re mounting the drive, but still cannot see the drive icon on the desktop or anywhere. I know the drive is okay because I can see it in disk utility but disk utility says the read/write access is none.
    thanks for anyone that can advise me. I'm more of a PC expert, than a Mac expert.
    Gary

    Follow the instructions in this FAQ which are relevant to your situation; logging in as root is not needed.
    (18945)

  • Content Management Server-Read/Write Access

    If one is migrating to a stand alone Content Management Server, then how does one control the read/write access to this CMS for the employees of an organisation?
    Previously, the CMS was SAP Portal Based and hence the read/write access was controlled from the KM Content in the Portal.
    Is there anything else to be kept in mind  as pointers when migrating to a stand alone CMS?
    Any suggestions/ideas would be greatly helpful.
    Thanks
    Tania

    Please post your question on the CMS related forum and close this one.  Here is forum for SAP Business One Reporting & Printing.
    Thanks,
    Gordon

  • When starting Final Cut Pro 7.0.3 I am all of a sudden getting a message that says "One or more of the scratch disks don't have read/ write access" and now the app won't operate - how do I fix this so I can use Final Cut Pro?

    When starting Final Cut Pro 7.0.3 I am all of a sudden getting a message that says "One or more of the scratch disks don't have read/ write access" and now the app won't operate - how do I fix this so I can use Final Cut Pro?

    Glad you found the answer.  But something seems wrong.  FCP should be able to assign the scratch disk to your startup drive.  It's not advisable, but it should be possible.  You might want to try and figure out what's going on before what ever's going on cause other problems.

  • This message shows up when I try to access my auxiliary iPhone library: "The iPhoto library is on a locked volume. Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library."

    This message shows up when I try to access my auxiliary iPhone library: "The iPhoto library is on a locked volume. Reopen iPhoto when you have read/write access, or reopen iPhoto with the Option key held down to choose another library."
    What did I do wrong?  I have been downloading all my photos into this same library since Janurary with no problems.

    What version of Mac OS X?
    Click the black Apple icon on the top left of the screen and select About This Mac. The next screen will show the information.

  • Destination u have specified does not have read/ write access- FCP 7 to Compressor problem!

    Hello everyone,
    I finally got a video finished in FCP 7, and sent it to Compressor.
    When I try to add a templete (any template, but particularly the Youtube), I get a red || Source    ! || message and when I hit the submit button I see: "The destination you have specified does not have read/ write access. Check to see if the folder is set to read-only, or check your write privileges."
    What the?
    I'm using Apple ProRes 422 files.
    I tried looking at the video files themselves, with Control + I. It looks like I have "Read & Write" access to me. I'm not sure what to do.
    I also tried looking in my preferences for Final Cut Pro stuff, and it was empty, so nothing to erase. I also repaired disk permissions with the Utility application.
    Well, thanks for any help.

    I haven't tried to save to any directory.
    As soon as I send the sequence from Final Cut to Compressor, I am prompted to drag the settings to the destination... but it won't let me submit it for the "read/ write" reasons above.
    So I never get the opportunity to save it, I just close out Compressor and go back to Final Cut Pro.
    I'm wondering if it has something to do with the scratch disk files. I converted the MOV files into ProRes files and keep them in my documents, then I just dragged and dropped them into the browser. I'm wondering if somehow this is affecting things, because I can't even find a scratch disk folder with files inside.
    I also tried to look at my Final Cut Pro preferences file, but I had no idea what I was looking at so I just left it alone.
    I really appreciate this by the way.

  • Read/write access when opening or saving file

    We keep getting the message "specified file not found,
    followed by the dreaded "read/write access denied" message when we
    try to open files (whether Freehand or Illustrator files) and
    sometimes when trying to save. We've tried to delete the prefs., as
    noted in other threads, but this hasn't worked for us. We are
    running Freehand MXa on PC's running Windows XP. We are trying to
    mostly open previously created Mac files.
    Can anyone help? Thanks very much!!!!

    I've not seen Word crash when selecting a smart folder - but it doesn't 'see' what's inside either. In other words when I select a smart folder in the file selector it appears to be an empty folder. And this isn't just a Word thing - lots of programs behave this way.
    I use smart folders from the desktop. I have a folder in my Dock which contains all my smart folders. I open a smart folder from there and then double-click the document I want to open. It is a work around obviously but it works

  • What happened to my thumbnail cache files? says they do not have read/write access.

    I was opeing Fc Studio 2, when the box popped up which said: Thumbnail cache files does not have read/write access. i pressed Ok and the program closed, so I can't fix the access. What do i do?

    Thumbnail cache files will be re-generated if you trash them, so you can simply delete them.
    A better question would be: Why is FCS reporting this?  At a minimum you should repair your permissions, and run Disk Warrior on your data drive. If the message returns, think about trashing your prefs.

  • Make my Program read/write to a local file

    Hello,
    I'm new to java but I have a workable program. I am trying to make the program read/write to a file. Right now all of my information is stored temp. so when my program crashes all of the info is lost. So if I could have it read/write to a local file then the information wouldn't get lost. Can someone please help me with this?
    Thanks

    http://java.sun.com/docs/books/tutorial/essential/io/index.html

  • Deliver file with read/write properties on target side using receiver file

    Hi All,
    Our file-to-file scenario works fine. By default, PI creates file on target directory with the 644 permissions. Files coming inbound from PI are not read/writable to the group. Currently the files from PI are coming across with 644 permissions and they should be 664 or 660. Is there a way to generate read/write files on targer side using SAP PI??
    Thanks in advance,
    - Riya Patil

    Hello,
    Try using Run-Operating system command after processing parameter with the below mentioned command:
    chmod 0755 /usr/sap/tmp/test/*
    where:  /usr/sap/tmp/test/ is the directory path location.
    Br,
    Rahul

  • NFS write access without local user

    Hi,
    I try to get write access to NFS from one to another linux system without local user account and group.
    System 1. /etc/exports -->set nfs share /backup
    Folder /backup all files owned by oracle:oinstall
    oracle(104):oinstall(106) 664
    System 2. user: root(1):root(1)
    #>mount -t nfs .....
    All files are owned by userid 104 and groupid 106
    I can get write access If I change userid and group id on system 2 to 104/106 but I think that could be smart way.
    Does anyone know the right was to get write access without have a same local user(id) and group(id)
    Thanks
    *T                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    You can try the following in your /etc/exports file:
    /backup   *(rw,insecure,all_squash,anonuid=104,anongid=106)
    Then reload the exports file using the command "service nfs reload"The above will allow rw access to the /backup directory and map all requests to the nobody account and remap the nobody account uid and guid to 104 and 106 of the nfs server system. The insecure option is required by some PCNFS clients. For more detailed information please check the exports man page.

  • Help with utl_file (read/write file from local directory)

    Need help reading/writing file on local machine from plsql using 10.2 DB.
    I am trying to read/write a file from a local directory(laptop) without success.
    I have been able to read/write to the database server directory but can't write to directory on local machine.
    The utl_file_dir parm has been set to * and the db restarted but I can't get it to work... Here's the plsql statement.
    out_file := UTL_FILE.FOPEN ( 'C:\PLSQL', 'TEST.TXT', 'W' ,32767);
    Whenever I run it continues to write to c:\PLSQL dir on the database server. Have looked at the "Directory" object and created MY_DIR = C:\PLSQL but it writes to the db server.
    Running 10.2 on a remote windows server, running PLSQL using sql*navigator.
    Thanks in advance for your help..

    I don't see how you expect the server to be able to see your laptop across the network, hack into it and start writing files. Even if it could, what if there is more than one laptop with a C: drive? How would it know which one to write to?
    Is there a shared drive on the server you can access via the laptop?

Maybe you are looking for

  • Scroll bar in 10 g

    How to attach scroll bar to my form in oracle forms 10g.

  • Ajax Framework Page

    Is there a  tutorial or article on how to  create  or customize your own Ajax Framework page on the portal for the SAP Netweaver CE 7.2 version? Vijay

  • A question on Collections

    11. public static Iterator reverse(List list) { 12. Collections.reverse(list); 13. return list.iterator(); 14. } 15. public static void main(String[] args) { 16. List list = new ArrayList(); 17. list.add("1"); list.add("2"); list.add("3"); 18. for (O

  • Exported .mov files are all 0:00s

    I exported my videos from iPhoto to external G-Drive to free up space on library, but now all videos on my hard drive appear as 0:00sec and are displayed as a  still when opened in Quicktime.  How can I get my videos working again??

  • Creating a record group not via select statement

    Normally a record group is created via a select statement (f.e. Querystr='Select deptno,dname from dept populate_group_with_query( GroupId, QueryStr ) Is it possible to create it via a package procedure sending a refcursor / array