Detect if file exists after ACTION_CREATE_DOCUMENT

Viewed 451

I am using the ACTION_CREATE_DOCUMENT intent when creating a file in my app. One user complained that he had lost data because he overwrote an existing file without getting a warning.

1.) Is there any way to find out if the returned document exists?

2.) What's the recommended workflow for this?

0 Answers
Related