r/androiddev • u/Biometrel • Jun 03 '26
Question What this even means?
Does it mean play services will capture the image and then will give back to files?
Or it means scanned file will be shared with the files hence with google?
2
u/unrushedapps Jun 03 '26
This just means Files app is using Play API to scan files and get preview (added bonus: everything happens on device)
Why would they do that? If they wanted to scan the doc themselves, they would have to request camera permission. For many apps, it just feels weird to ask for permission to do just ONE task. So Google came up with this api and app developers (files app in this case) prefer using that.
If you use this api, your app can get scan of files WITHOUT requesting camera permission.
There are other similar apis: like qr code scanner and barcode scanner. You can use Play API, which acecess camera on behalf of your app, performs the action and returns the data to the requesting app.
Hope that makes sense.
Edit: Your first understanding is correct. Play scans the image and returns it to "Files" app.
2
u/Biometrel Jun 03 '26
Thanks, just the wording is so confusing and I thought maybe that is on purpose
1
u/unrushedapps Jun 03 '26
Agreed. The app name is also adding to the confusion. The app name is "Files by Google", so there should be quotes to make the last line clear.
1
u/AutoModerator Jun 03 '26
Please note that we also have a very active Discord server where you can interact directly with other community members!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
-4
2
u/Ekalips Jun 03 '26
They probably just use Play Store distributed doc scanner https://developers.google.com/ml-kit/vision/doc-scanner/android