Use of Intent to share text and links
The text from Edittext fields and from Textview fields can be shared from the App using Intent. Here are the Logic blocks to be used for the purpose.
1. To share text to WhatsApp
- Intent (name) setAction ACTION_VIEW
- Intent (name) setData join whatsapp://send?text=and (Edittext/Textview)getText
- StartActivity (name)
2. To share text to Twitter
- Intent (name) setAction ACTION_VIEW
- Intent (name) setData join http://twitter.com/share?text=and (Edittext/Textview)getText
- StartActivity (name)
3. To share text on Facebook
- Intent (name) setAction ACTION_VIEW
- Intent (name) setData join https://www.facebook.com/sharer.php?u=[URL]&t=and (Edittext/Textview)getText
- StartActivity (name)
4. To share on Google plus
- Intent (name) setAction ACTION_VIEW
- Intent (name) setData join https://plus.google.com/share?url=[URL]&text=and (Edittext/Textview)getText
- StartActivity (name)
5. To share a link on LinkedIn
- Intent (name) setAction ACTION_VIEW
- Intent (name) setData https://www.linkedin.com/shareArticle?mini=true&url=[URL]&title=[Title]&summary=[text]&source=[text]
- StartActivity (name)
To implement a common share button visit here: http://www.sketchwarehelp.com/2017/08/how-to-add-common-share-button-in.html.
sketchware how to make share button without text messages
ReplyDeleteMusic
DeleteFacebook share not work
ReplyDeleteFacebook share not working bro plz update
ReplyDeleteLa solución esta en como escribes los comandos yo he intentado con los q el enlace me muestra, pero no todos funcionan bien, lo cual investigue y me di cuenta. que en otros videos tutoriales de los mismos temas ya expuestos; podÃamos en la parte lógica, cambiar algunos de los comandos escritos que nos da este sitio o agregar algún otro. Mi consejo es que miren el mismo tema en otros tutoriales de lo mismo les aseguro van a encontrar fácil mente varios formas de hacer lo mismo
ReplyDeleteCan you tell me how to transfer data from a Activity to Fragment in Sketchware Pro?
ReplyDelete