Copying File from Download Folder to ASD

Post #3

1 Like

Hi guys,

First of all thank you very much for taking the time to help me.

So, I have developed an App that updates the phone's contact list based on the content of a text file.

We used Airwatch (MDM software) to transfer the text file to the ASD, but after Android 10 this is not possilble anymore. Airwatch can only access Shared folders, like Documents or Download.

So my idea was to trasnfer the text file to one of these folder and let the App copy it to the ASD or read it directly from the Shared Folder.

But apparently for this to be possible with SAF there must some user interaction, to let the user select the file, at leats for the first time.

So I think I will try MANAGE_EXTERNAL_STORAGE.

Which will be OK as long as you do not want to publish the app on Google Play.

Also, there are extensions available that may manage the contacts lists ?

e.g.

Hello,

Yes, I'm already using ContactsSaver. Perhaps you can give me some help regarding this piece of code

How do I know if the User granted the permission or not?

Use these blocks to solve your basic problem.
ContactBlocks

Hi.

That works for permissions that are asked using ActivityStarter?

You could try using this extension.

You can try that also.
As Ask permission also have permission for Read Contacts.

1 Like