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
Location: Italy

share option

Post by Samuele » 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!
Samuele.

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: share option

Post by simon.schvartzman » Thu Oct 14, 2021 10:04 am

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

Hope it helps.

Best
Simon
________________________________________
To ";" or not to ";" that is the question

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: share option

Post by Samuele » Thu Oct 14, 2021 5:17 pm

thanks, but then what do i write?
Samuele.

simon.schvartzman
Posts: 638
Joined: Tue Jul 29, 2014 12:52 am
Location: Brazil

Re: share option

Post by simon.schvartzman » Thu Oct 14, 2021 6:03 pm

As @Klaus would say, have a look at the dictionary and also search for examples in the forum...
Simon
________________________________________
To ";" or not to ";" that is the question

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7214
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: share option

Post by jacque » Fri Oct 15, 2021 6:25 pm

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
Location: Italy

Re: share option

Post by Samuele » Sun Oct 17, 2021 7:27 pm

ok thanks, how do i post as a code?
Samuele.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: share option

Post by richmond62 » Sun Oct 17, 2021 9:26 pm

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 5324 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: 146
Joined: Fri Aug 16, 2019 7:51 pm

Re: share option

Post by andresdt » Tue Oct 19, 2021 1:43 am

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 104 times

Samuele
Posts: 282
Joined: Mon Oct 11, 2021 7:05 pm
Location: Italy

Re: share option

Post by Samuele » Wed Oct 20, 2021 11:14 am

thank you, but i can't open it, do you have in another format maybe?
thanks again
Samuele.

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: share option

Post by Klaus » Wed Oct 20, 2021 11:46 am

Maybe you can open ZIP archives?
Attachments
share Photos and Text.livecode.zip
(3.78 KiB) Downloaded 101 times

MichaelS
Posts: 24
Joined: Sat Jan 18, 2020 5:24 pm

Re: share option

Post by MichaelS » Sun Jun 05, 2022 7:51 am

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
Location: Italy

Re: share option

Post by Samuele » Thu Jun 16, 2022 6:03 pm

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

Return to “Getting Started with LiveCode - Complete Beginners”