Android Send Intent (Share)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Sorry, maybe i am blind or just stupid. But i really dont understand it. I got "Select from gallery" and "GetGalleryPath$". But how do I open the exact screenshot that I have created with the Android object?
    If "Select from Gallery" could handle Stings i would understand it. But with 0, 1, 3 I'm stuck. HEEEELLLPPP a blind (or stupid) member, please!!!

  • Thanks for your example.

    Unfortunately, it's not quite what I thought. In your example you have to open the gallery and the search image first. I'm trying to get it without this step.

    Idea 1 - Share with Intent :
    Click on your own designed "Share Button" and send the last screenshot that was made. Ideally with previous app selection. Facebook, WhatsApp, GMail etc.

    Idea 2 - Share with Gallery:
    Click on "Open Screenshot in Gallery" and the last screenshot directly opens up in gallery. (no search) From there you can then directly share it with build in Share Button from Android.

    Unfortunately, your intent is not working properly because the image is not attached. This intent would be enough for me. (if its working)
    I have the same results with my intent as well. (Almost even the same code). The image is not attached . It seems as if it would not find the file path.

  • Quote

    Idea 1 - Share with Intent :
    Click on your own designed "Share Button" and send the last screenshot that was made. Ideally with previous app selection. Facebook, WhatsApp, GMail etc.

    but sorry the image have the name you set to save to capture the screen, i think i don´t follow you on this, the name is available because you create it, or i am missing something?

    if you create the capture using PublicStorageDirectory( "Android object", "Pictures" ) + "/" + "myscreengame.jpg", that is the file you need, so pointing to PublicStorageDirectory( "Android object", "Pictures" ) + "/" + "myscreengame.jpg" is pointing the image if exist, which you can test before using file object.

    Quote

    Idea 2 - Share with Gallery:
    Click on "Open Screenshot in Gallery" and the last screenshot directly opens up in gallery. (no search) From there you can then directly share it with build in Share Button from Android.

    sorry this i can not do.


    Quote

    Unfortunately, your intent is not working properly because the image is not attached. This intent would be enough for me. (if its working)
    I have the same results with my intent as well. (Almost even the same code). The image is not attached . It seems as if it would not find the file path.

    this will not work, i forgot to delete since you need to do a real stream of bytes to attach a file, but still can attach manually or use the email object i will make some change and post so can be use

    what i am intrigue is that with the example I do open an image, capture the screen, open gallery select the image just captured once again do screen capture and again select from gallery and is the old one and is correctly show, can you post which device you are using, here i am using Gtablet and Nexus 7 (thats why i am using the public storage in the example KitKat 4.4)

    Regards,


    Fernando Vivolo

    ... new things are coming ...

  • Quote

    but sorry the image have the name you set to save to capture the screen, i think i don´t follow you on this, the name is available because you create it, or i am missing something?
    if you create the capture using PublicStorageDirectory( "Android object", "Pictures" ) + "/" + "myscreengame.jpg", that is the file you need, so pointing to PublicStorageDirectory( "Android object", "Pictures" ) + "/" + "myscreengame.jpg" is pointing the image if exist, which you can test before using file object.

    I have the correct path. But you write here:

    Quote

    this will not work, i forgot to delete since you need to do a real stream of bytes to attach a file, but still can attach manually or use the email object i will make some change and post so can be use

    So attach a picture does not work by Intent? Right? Because you need to do a real stream of bytes to attach a file? Right? If yes, thats bad and my intent code would never work correctly because i couldnt attach an image to the intent.


    Quote

    what i am intrigue is that with the example I do open an image, capture the screen, open gallery select the image just captured once again do screen capture and again select from gallery and is the old one and is correctly show, can you post which device you are using, here i am using Gtablet and Nexus 7 (thats why i am using the public storage in the example KitKat 4.4)

    I use a Nexus5 and Nexus7 2012. Both with Android 4.4.2.

    The example is cool. Yes. But not what i need. Manually attach a picture is not an option for me. When a user presses a share button, he expects everything works automatically. Not that he has to search the picture in the Gallery and attach it to the mail again. The possibility to attach pictures with an intent would be the best, i think. When that would work, we could use the share function of Android and share our screenshots with ALL APPS installed. And no one have to make different extensions for each social media app (etc. Facebook, Twitter...).

  • Fernando I just need the commands for the Twitter, I just need to post a text in a string object.

    In iOS use the iOS Share and not have problems, but in Android not is make it, in your example send email and I have seen in various forums of Android them scrpits for the twitter but not is as implement it in F2.5.

    Help me please... :)

    José Rafael Marcano
    Please login to see this link.

  • Of course, Fernando and thank you very much for your help,

    In this POST there are two options and as the best give the option of open the twitter with the URL since so can open is any customer that have installed the user.

    Please login to see this link.

    José Rafael Marcano
    Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!