-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: [android] FileOpenPicker #2896
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your PR. Can you make a Sample page which demonstrates the use of this feature ?
998eca3
to
d667fc5
Compare
9d454c1
to
62848f6
Compare
I rebase it, as "feat: Storage.Pickers.PickerLocationId (#4242)" was merged into master. Added some changes. As the only way known for me after rebase is sqash commits and force push, I did just that - as side effect, loosing what was changed by Martin and what was changed by me. |
oh 😅 , I hope I have a local copy of the branch somewhere |
All your changes are preserved. |
Build errors outside scope of this PR. Could you restart build? |
Can build be restarted? "Publishing build artifacts failed with an error: Not found PathtoPublish:", not related to this PR. |
@pkar70 Some of the build errors do look like they come from this PR:
What is this PermissionHelper? It doesn't exist in UWP or Uno according to my searches. It appears to be an Android-specific helper you may have added yourself? |
I checked only first screen with errors, all not related to this PR... And didn't look further. |
41fafd5
to
575a30d
Compare
Build error "Removed type Windows.Storage.StorageItem not found in ignore set" seems to be unrelated to this PR. Can you restart build? |
174b824
to
830456d
Compare
Today I recompiled Uno with this PR, for Android, and something was changed. With "base Uno" 2.2.0-dev.386, it works. With "base Uno" 3.1.6, it doesn't work - it shows picker, allows to select file, it even return selected file to app, but it shows splash screen (or empty screen, if no splash screen is defined). |
Hello guys, |
It works with target Android 9.0 and Uno 2.2.0-dev.386; but Uno 3.1.6 and target Android 10.0 - effect as you described. I don't know if it is some change in base Uno, or in Android. |
I verified with version 3.1.6 and 3.6.0-dev.103 on Andorid 10 and andorid 8. In both, effect is the same. FIlePicker close content dialog. Seems, that if it works in 2.2.0, issue is in UNO |
You run it "on Andorid 10 and andorid 8". But what was target SDK? In both cases, Android 10? |
I debugged your branch and what i found:
As you see in this method all Popups are closed (content dialogs included)
|
(2) It works OK in my app (besides blank screen after selecting file) - app opens file, and starts importing SMS messages. But my file is local (/Download), my tablet (the only device with Android) has Android 8.1, and I'm using Uno clone from 3.1.6 (because I have several Uno apps, and have too many non-merged PR to rebuild and retest everything after each Uno change). |
|
GitHub Issue (If applicable): closes #4016
PR Type
What kind of change does this PR introduce?
What is the current behavior?
FileOpenPicker is not implemented on Android
What is the new behavior?
FileOpenPicker is implemented on Android
PR Checklist
Please check if your PR fulfills the following requirements:
Screenshots Compare Test Run
results.