HowTo: use share action for the Image Gallery

Official Content
This documentation is valid for:

One of the properties of the Image Gallery control is to enable share Action.

imagesharebutton   

This will add a button to allow the user to share one or a selection of images of the image gallery: sharebuttonimagegallery
Some info from the developers blog: http://genexus-sd.blogspot.com/2012/01/share-button-in-image-gallery.html

When viewing an image you can tap on the share button:

shareimagegalleryios1     shareimagegalleryandroid

The following dialogue will appear:

shareimagegalleryio2     shareimagegalleryandroid2

Email example:

shareimagegalleryios3     shareimagegalleryandroid3

Twitter example:

shareimagegalleryios4     shareimagegalleryandroid4

To share with facebook first follow this link: HowTo: Register a Facebook App for Smart Device interaction. After having everything configured on the KB to interact with Facebook the app should be able to post an image on the user's facebook wall.

Take into consideration that the images that can be posted to facebook has to be accesible in a public URL.

shareimagegalleryios5     shareimagegalleryandroid5

Considerations

When using iOS, the Share option is enabled if any of the following is set on the device:

  • Mail
  • SMS
  • Twitter
  • Facebook