-
Notifications
You must be signed in to change notification settings - Fork 12
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
Automatic usage from other apps #368
Comments
That goes in line with my request to either write the cleanup part as a library or at least make cleanup rules exportable so other applications can use them. |
It is technically possible to call Léon from another app, but it wouldn't necessarily be in the background. The most simple solution would be that an app calls Léon, it becomes the foreground app and after cleaning Léon returns a result, all through Android's Intent system. There are other solutions that don't require to leave the current app but I would have to dive deeper into these topics.
@farOverNinethousand Please help me, where did we talk about this? 😅 |
Sure I'll help -> Here we've had a talk about this or at least a similar topic.
|
@farOverNinethousand Thank you for confirming that Léon is so good, that there is demand to port over other platforms and languages. IMO for an Android app it's better to call via intent or other IPC, than embedding as a library, because
|
Thank you. I found a feature request at AndStatus, a Mastodon and ActivityPub client, to clean up URLs. I will mention Léon to them, so that you can coordinate. |
Today I added the functionality to open Leon from the system's text context menu. I need to analyze further but it could be that other apps can already use this Activity to automatically clean URLs. But I probably need to add more Intent filters to simplify this process. |
In #416 I added a simple API based on Android's standard intent mechanism. In the future I might extract the cleaning logic into a separate library that can be used by other Kotlin and Android applications as discussed here. |
@svenjacobs |
Thanks, I fixed it! |
Say a social network client wants to introduce a feature to auto-clean URLs when the user submits a post. But there is no manpower to keep the rules up-to-date. Is it technically possible to call Léon in background?
The text was updated successfully, but these errors were encountered: