-
Notifications
You must be signed in to change notification settings - Fork 44
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
Extend ShareActivity to wrap captured link into org link if possible #323
Conversation
Nice! |
app/src/main/java/com/orgzly/android/ui/share/ShareActivity.java
Outdated
Show resolved
Hide resolved
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.
@lingnand I have made a PR to your branch suggesting a different way to recognize URLs: lingnand#1
Use java.net.URL to recognize URLs
@lingnand We should switch to java.net.URI, as you suggested elsewhere (and catch URISyntaxException instead). |
After discussion with @lingnand: >>> Good idea to use proper class to parse. Can we use java.net.URI instead? A lot of org links are not web URL but URI e.g. file:a/b/c >> Sure. I was thinking that one may not want to handle all types of URIs like this. But if you can imagine a use case, then let's do it. > I use an Email app that generate links to emails, which fall into this category (basically, Android app links are this format)
Use URI class, not URL
Thank you for your first contribution, @lingnand! Edit: Sorry, I mean second contribution! 😃 |
This looks at the incoming intent data and wraps a link with title information into an org link.