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

Unable to shaare from FlymeOS default browser #19

Closed
ArthurHoaro opened this issue Feb 16, 2016 · 8 comments
Closed

Unable to shaare from FlymeOS default browser #19

ArthurHoaro opened this issue Feb 16, 2016 · 8 comments
Labels

Comments

@ArthurHoaro
Copy link

ArthurHoaro commented Feb 16, 2016

In the default browser of FlymeOS (Meizu branded Android), the Shaarlier icon isn't available when clicking on share. It's available on Plume for Twitter or Relay for Reddit though.

Android 5.1

@dimtion dimtion added the bug label Feb 16, 2016
@dimtion
Copy link
Owner

dimtion commented Feb 16, 2016

It might be coming from the format in which the browser send the data. Shaarlier only accepts "text/plain" intents.

Are you using the default OwnCloud application ? Maybe I can find the answer in its source code.

@ArthurHoaro
Copy link
Author

Yes I am. Although it says Nothing to send if I try to share something there.

K9-mail might be a better help. Let me know if you want me to try something out.

Le 16 février 2016 18:52:19 GMT+01:00, dimtion notifications@github.com a écrit :

It might be coming from the format in which the browser send the data.
Shaarlier only accepts "text/plain" intents.

Are you using the default OwnCloud application ? Maybe I can find the
answer in its source code.


Reply to this email directly or view it on GitHub:
#19 (comment)

@dimtion
Copy link
Owner

dimtion commented Feb 23, 2016

Do you have a way to know which mime type your browser uses ? I'm having a hard time installing FlymeOS...

@ArthurHoaro
Copy link
Author

I don't know. I'll run a few tests to see if I can help.

@ArthurHoaro
Copy link
Author

So, I made some tests. My simple app received plain/text, but is only available if it has this:

<intent-filter>
    <action android:name="android.intent.action.SEND" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="*/*" />
</intent-filter>

My guess is that they're doing this:

You can use a MIME type of "/", but this will only match activities that are able to handle generic data streams.

So, 2 possibilities:

  • wontfix
  • accept all mimetypes and only handle text/plain in your activity.

It's up to you.

@dimtion
Copy link
Owner

dimtion commented Jun 8, 2016

As @di72nn has said in #23 it is technically possible to handle more mimetypes optionally. But I am not very found of adding another option in the menu to handle this specific case.

What do you think of using the new checkbox created in #23 perhaps by renaming it in something more vague like "Handle more link types" ? In which case, most users won't be bothered by Shaarlier in all their unrelated share intents, and the few who have a problem can check this option.

I'm afraid that even #23 makes the UI a bit bulky.

@ArthurHoaro
Copy link
Author

I don't think it's gonna work, because as I said, the minimal app I made actually receive text/plain, but only if I'm « listening » to mimeType="*/*". This issue is very minor, and marginal, I don't think you should worry too much about it.

@ArthurHoaro
Copy link
Author

This bug no longer exists with FlymeOS 5.

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

No branches or pull requests

2 participants