As Nemobis said at https://github.com/commons-app/apps-android-commons/issues/892 we won't get huge until we get integrated with apps that many people already use.
I believe that a first step towards that direction would be to implement an intent to let other apps open the Commons app.
Example scenario:
I am sure there are better examples, please feel free to add more :-)
Intent design and naming ideas also welcome!
Sounds like a great idea. Wouldn't the other apps need to voluntarily want to do this (by modifying their own code) in order for the intent to even be used though? That sounds like the trickiest part.
It would be amazing if we could be integrated somewhat with the Wikipedia app. For instance, if someone uses the Wikipedia app to edit an article, there could be an option to "take an image" for that article, which would open the Commons app.
Hey @nicolas-raoul I'd like to take this up if its not yet assigned ๐
What we could probably do for now is implement it such that we take the image URI and the label as intent extras from the third-party apps and then open the image with the label pre-filled using the intent extras that we receive. As for the third-party apps implementing these features, we could provide a standard contract as such with which they have to abide to pass the data into our app.
@misaochan Yes, the other apps would need to voluntarily modify their own code. We can't force any app to implement a call to us, but at least we can make it possible for any potential app that might want to do it :-)
@yashshah7197 It's yours! Could you please first describe the intent you envision, using the syntax seen at the numerous examples of http://www.openintents.org/intentsregistry/ ? Thanks!
@nicolas-raoul sure! Here is the one that I suggest we use - http://www.openintents.org/action/android-intent-action-send/
But instead of just having an intent to open the app, we would have a contract to pass in the image URI(or the image itself) and the label as intent extras.
Hey @nicolas-raoul I've filed a PR (#1292) which has implemented this. Turns out the app already had a functionality to receive images shared by other apps. I just had to add checks for a title and/or description if the app wants to send one along with it. I created a test app which verifies this functionality too so everything works as expected! ๐ I can also provide some screenshots of the test app as well as the Commons app after the sharing with title and description is done! ๐
@yashshah7197 Cool!
Could you please post the test app to Github? For instance you can call it "Commons-Mobile-app-intent-client-sample". Thanks a lot :-)
@nicolas-raoul sure! Here is the repo link -
https://github.com/yashshah7197/commons-intent-client-sample
Just a note though that've I've written the sample app in Kotlin since I've been learning the language these days. ๐ป
Thanks!
Would you mind transfering the repo to the https://github.com/commons-app
organization? You can request the transfer in the settings of your repo.
This way, it would be easy to find and maintain :-)
Cheers!
On Tue, Mar 13, 2018 at 10:59 PM, Yash Shah notifications@github.com
wrote:
@nicolas-raoul https://github.com/nicolas-raoul sure! Here is the repo
link -
https://github.com/yashshah7197/commons-intent-client-sampleJust a note though that've I've written the sample app in Kotlin since
I've been learning the language these days. ๐ปโ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/1273#issuecomment-372674468,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBk19SfcdNPNuLhyoW63hc1xbqwiuks5td9CygaJpZM4Sj6Xm
.
Sure! But I think I need to transfer the ownership to you first since I don't have rights to create repos in the commons-app organization. I tried and it gave me an error saying that I don't have rights to create a repo. ๐ข
OK can you please transfer to me? Thanks a lot! :-)
On Wed, Mar 14, 2018 at 4:07 PM, Yash Shah notifications@github.com wrote:
Sure! But I think I need to transfer the ownership to you first since I
don't have rights to create repos in the commons-app organization. I tried
and it gave me an error saying that I don't have rights to create a repo.
๐ขโ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/1273#issuecomment-372924650,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBiLtCBGyeI2WHUTlWaDbbQW01Q6Xks5teMGWgaJpZM4Sj6Xm
.
Ah, could you please first add an open source license, by the way?
For instance this file:
https://github.com/commons-app/apps-android-commons/blob/master/COPYING or
another license if you prefer another one.
Your name will stay in the namespace, by the way :-)
On Wed, Mar 14, 2018 at 5:15 PM, Nicolas Raoul nicolas.raoul@gmail.com
wrote:
OK can you please transfer to me? Thanks a lot! :-)
On Wed, Mar 14, 2018 at 4:07 PM, Yash Shah notifications@github.com
wrote:Sure! But I think I need to transfer the ownership to you first since I
don't have rights to create repos in the commons-app organization. I tried
and it gave me an error saying that I don't have rights to create a repo.
๐ขโ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/1273#issuecomment-372924650,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBiLtCBGyeI2WHUTlWaDbbQW01Q6Xks5teMGWgaJpZM4Sj6Xm
.
Done! I've added the license file and requested the ownership transfer to you. You just have to accept it now! ๐ป ๐
The repo now lives at
https://github.com/commons-app/commons-intent-client-sample and you are a
collaborator (with write permission) to it :-)
On Wed, Mar 14, 2018 at 8:35 PM, Yash Shah notifications@github.com wrote:
Done! I've added the license file and requested the ownership transfer to
you. You just have to accept it now! ๐ป ๐โ
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/1273#issuecomment-372991147,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBsLDv4G8a5bIqpGNygUzYkWVKT2zks5teQCXgaJpZM4Sj6Xm
.
@nicolas-raoul great! ๐ป Now just waiting for my PR to be merged haha! ๐คฃ
Since we have implemented the first steps for this feature, should we communicate with other open source apps to inform that it is possible to do? How they will know that if we don't tell them:)
@neslihanturan how about we create a new Wiki page to document this feature? This way any app that wants to use this feature can look at the Wiki pages on how to implement it in their app. We can also then reach out to popular open source apps requesting them to implement this feature simply by just contacting them with the link of the documentation. We can also edit the Wiki page here but that doesn't really feel the right place to me.
Let me know if I can start writing the documentation and I'll write it right away! ๐
@yashshah7197 Yes please create a Wiki page about this, thanks a lot! :-)
Let's start gathering ideas of apps where the user shares an image + a description.
Image + description : yes
Relevance of the content: Low (Commons has enough selfies with dog ears)
Probability that they integrate us: About zero :-)
Screenshot:

@nicolas-raoul On it! I'll have it up by night! ๐
@nicolas-raoul @neslihanturan I've written the wiki page and it can be found here. Please let me know if any changes are to be made! ๐ป
@yashshah7197 Wonderful thanks! :-)
Most helpful comment
@yashshah7197 Yes please create a Wiki page about this, thanks a lot! :-)
Let's start gathering ideas of apps where the user shares an image + a description.
Snapchat
Image + description : yes

Relevance of the content: Low (Commons has enough selfies with dog ears)
Probability that they integrate us: About zero :-)
Screenshot: