Treat a selection as the start of an import.
Design around a content reference rather than assuming every selected photo is a normal file path. Open it through the platform’s supported interfaces, inspect what your product actually needs, and track the transfer into your app or remote storage. Keep user-visible selection separate from a confirmed, durable copy.
01 /Choose the platform flow
Use a picker for user-selected media where it fits. Check the documented availability and fallback behavior for the devices your application supports.
02 /Read the returned content
Handle the URI through supported Android APIs. Do not infer a filesystem path or trust an extension as the only validation step.
03 /Plan access lifetime
If work continues beyond the immediate interaction, determine whether your workflow needs a persistable grant or an app-owned copy, using the documented API behavior.
04 /Resume with context
Save an import record before scheduling long work. After interruption, distinguish work that can resume from selections that need the person to grant access again.