share option

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

share option

Post by Samuele »

hi, another question, how can i make a code that is gonna share something (in my case, numbers, a high score) not in a specific platform like instagram, whatsapp ecc. but a more general share and then the user chooses what to share with.
i don't know if i was clear, thank you!
Samuele.
simon.schvartzman
Posts: 672
Joined: Tue Jul 29, 2014 12:52 am

Re: share option

Post by simon.schvartzman »

HI Samuele, check "mergPopActivity" to share on iOS and "mobileComposeMail" to share on Android.

Hope it helps.

Best
Simon
________________________________________
To "AI", or not to "AI", that is the question
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: share option

Post by Samuele »

thanks, but then what do i write?
Samuele.
simon.schvartzman
Posts: 672
Joined: Tue Jul 29, 2014 12:52 am

Re: share option

Post by simon.schvartzman »

As @Klaus would say, have a look at the dictionary and also search for examples in the forum...
Simon
________________________________________
To "AI", or not to "AI", that is the question
jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: share option

Post by jacque »

We don't usually write code for people but if you post the scripts you've already written we will help you fix them.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: share option

Post by Samuele »

ok thanks, how do i post as a code?
Samuele.
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10415
Joined: Fri Feb 19, 2010 10:17 am

Re: share option

Post by richmond62 »

Like this:

1. Click on this button at the top:
-
SShot 2021-10-17 at 23.24.43.png
SShot 2021-10-17 at 23.24.43.png (2.01 KiB) Viewed 9812 times
-
and then type your code in the place offered so it looks like this when you submit your message:

Code: Select all

on mouseUp
    do something
end mouseUp
andresdt
Posts: 156
Joined: Fri Aug 16, 2019 7:51 pm
Contact:

Re: share option

Post by andresdt »

Samuele wrote: Wed Oct 13, 2021 7:23 pm hi, another question, how can i make a code that is gonna share something (in my case, numbers, a high score) not in a specific platform like instagram, whatsapp ecc. but a more general share and then the user chooses what to share with.
i don't know if i was clear, thank you!
Hi @Samuele
Here I share an example stack which can help you. Or so I hope :D
It is a stack with two buttons in which an image and the text that is in field 1 are shared. One of these two ways can be to send your score ;)

It is created for Android which is for the platform that I can test right now.
share Photos and Text.rar
(3.21 KiB) Downloaded 332 times
Be kind, we all have our own wars.
https://torocruzand.com/
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: share option

Post by Samuele »

thank you, but i can't open it, do you have in another format maybe?
thanks again
Samuele.
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: share option

Post by Klaus »

Maybe you can open ZIP archives?
Attachments
share Photos and Text.livecode.zip
(3.78 KiB) Downloaded 331 times
MichaelS
Posts: 24
Joined: Sat Jan 18, 2020 5:24 pm

Re: share option

Post by MichaelS »

Hi Andresdt,
thank you very much for sharing your Code Example. I had the same Problem and i did not found a Solution for this before.
Your Code works well on my Samsung Android Mobile Device , so i can extend my Shopping List App with this "Share List with Whatsapp"
Function.

Thank you again and Greetings from Germany
Michael
Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm

Re: share option

Post by Samuele »

Hi, Thanks, that's really cool, but on whatsapp the text is shared like a file, is the problem the extension .txt? if yes, what extension does whatsapp or the most known message apps use? thanks!
Attachments
WhatsApp Image 2022-06-16 at 18.59.35.jpeg
Samuele.
Post Reply