Skip to content
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

Need to update content://URI for compatibility with google #38

Open
techguyone opened this issue Apr 3, 2018 · 8 comments
Open

Need to update content://URI for compatibility with google #38

techguyone opened this issue Apr 3, 2018 · 8 comments

Comments

@techguyone
Copy link

currently only reads content:// URI generated within their app, not from other apps.

Play Store will require this starting November 2018.

@friedger
Copy link
Member

friedger commented Apr 5, 2018 via email

@techguyone
Copy link
Author

Looking at the OI Note source code here: https://github.com/openintents/notep...oteEditor.java

It looks that code is intended to read a content:// URI generated within their app, not from other apps. They're behaving as though any content:// URI sent a reference to a note in their database with a bunch of proprietary columns FX of course isn't providing these.

OI Note does work fine if you have FX use file:// URIs to open files, at was the default in FX 6.3 and prior. This setting can be changed in FX's settings, "Opening Files", "Use Content URIs" (last option). This option will be removed in a not-too-distant version of FX, as the Play Store will require this starting November 2018.

TL/DR you can't open OI Note in a different app for example using a file explorer and using 'open with' because OI isn't set up that way, if it isn't changed to do so, in November it won't work.

@friedger
Copy link
Member

friedger commented Apr 5, 2018 via email

@techguyone
Copy link
Author

I liked the simplicity we had before, I just navigated to my SD Card using FX Explorer (would be the same for any file manager) and long selecting the txt file so you get the 'open with' dialog come up, then choosing 'open with OI Notes' in this case

This issue only came to light as the dev of FX Explorer has changed his method of opening in preparation of Google guidelines later in the year otherwise I wouldn't have known there was a future problem.

At least now you can pre empt the change and OI Notes will still work when opening via another app.

As far as the mechanics go, I'm guessing that once OI opens the tex, its then editable and savable if required the same as if we'd had OI as the default txt viewer and opened it directly, I don't see the need to make it complicated.

@aperomsik
Copy link
Member

Still not seeing where you provided a link to the policy change. Did I miss it? We need to understand how it will affect the use case of notes embedded in OI Shopping List items.

@friedger
Copy link
Member

friedger commented Apr 5, 2018 via email

@techguyone
Copy link
Author

File URI's no, but Content URI's yes (I have no idea what the difference is , but the Dev of FX Explorer seemed to know what it meant)

@techguyone
Copy link
Author

techguyone commented Apr 7, 2018

I'll just add this for the necessary proof

Here is the requirement regarding Play Store API level requirements:

https://developer.android.com/distribute/best-practices/develop/target-sdk.html

It requires new apps to Target SDK 26 (Oreo 8.0) by August 2018 and existing apps to do by November 2018.

Starting in SDK 24 (Nougat 7.0) apps are forbidden from sending files to each other using a file:/// URI and must instead use a content:// URI. This is mentioned in the Play Store info URL, but also more specifically here: https://developer.android.com/about/versions/nougat/android-7.0-changes.html#sharing-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants