Store data in different location CsEntry

Discussions about creating CAPI applications to run on Android devices
Post Reply
chandi
Posts: 9
Joined: August 12th, 2023, 3:31 am

Store data in different location CsEntry

Post by chandi »

I am trying to save data file in different location in my android internal storage, I set the location via
intent.putExtra("InputData", NewdataFile); (As mention in the relevant Example)
but this gives error and not open the App, and it says it has no permission to create new file, how can I add permission to the location, or resolve this issue.
(I am testing on Android 11)
Gregory Martin
Posts: 1796
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Store data in different location CsEntry

Post by Gregory Martin »

What directory are you trying to save your files into? Because of Android data security restrictions, the CSEntry application is limited in the locations to which it can write. One directory that every application can access is the Downloads directory:
pathname(Downloads)
If are you trying to share data between applications, you might consider putting it in that directory.
chandi
Posts: 9
Joined: August 12th, 2023, 3:31 am

Re: Store data in different location CsEntry

Post by chandi »

Thanks Greg, I'll try :)
Post Reply