android - Can't open database on 2nd user account, error EACCES (Permission denied) -
i have problems app of mine , galaxy nexus 10 multi user support. app has copy database, works fine when logged in first user of tablet, fails java.io.filenotfoundexception: /data/data/packagename/dbname.db: open failed: eacces (permission denied) when logged in second account. second account seems have no rights write /data/data... so, can done it? read of topics concerning problem, still no answer satisfies me. there folder can used share data between users?! the second account seems have no rights write /data/data... correct. so, can done it? i guessing hard-coded path. if so, not this. use getdatabasepath() find proper path database for current user . is there folder can used share data between users?! not aware of. external storage separate between users. in effect, separate user accounts on device if users on separate devices.