The place to discuss anything and everything about running your LiveCode on Android
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
Peregrine
- Posts: 53
- Joined: Sun Jan 10, 2010 10:33 pm
-
Contact:
Post
by Peregrine » Thu May 03, 2012 10:08 pm
Hi List...
My Android app crashes when I try to use the modal pick-wheel.
I'm sure I'm missing something simple... can anyone see what it is?
I've tried the optionList with and without a return on the end.
Code: Select all
on mouseUp
put "one" & return & "two" & return & "three" & return & "four" & return & "five" into tOptionList
put 2 into tInitialIndex
mobilePick tOptionList, tInitialIndex
answer the result
end mouseUp
Thanks!
- Charles
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Thu May 03, 2012 10:45 pm
Hi...
Maybe...
Code: Select all
on mouseUp
put "one" & cr & "two" & cr & "three" & cr & "four" & cr & "five" into tOptionList
put line 2 of tOptionList into tInitialIndex
mobilePick tOptionList, tInitialIndex
answer the result
end mouseUp
be well
Dixie
-
Peregrine
- Posts: 53
- Joined: Sun Jan 10, 2010 10:33 pm
-
Contact:
Post
by Peregrine » Thu May 03, 2012 11:32 pm
Hmmm... Thanks, Dixie, but no luck. This also crashes.
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com
-
Dixie
- Livecode Opensource Backer

- Posts: 1336
- Joined: Sun Jul 12, 2009 10:53 am
Post
by Dixie » Fri May 04, 2012 1:06 am
Oh dear... that will teach me to try and supply an answer on 'the fly' without testing a script...
This works under iOS... I would have thought it would be similiar...
Code: Select all
on mouseUp
put "one" & cr & "two" & cr & "three" into optionList
iphonePick optionlist, 2
answer the result
end mouseUp
be well,
Dixie
-
Peregrine
- Posts: 53
- Joined: Sun Jan 10, 2010 10:33 pm
-
Contact:
Post
by Peregrine » Fri May 04, 2012 4:05 am
Yes, documentation says they are supposed to be the same.
I even made a stack with just one button and this script, to be sure it didn't have something to do with other scripts.
And I tried it on 2 different AVD's.
Anyone else have an idea?
Charles Buchwald
xTalk coding since 1990
Developer of lcResTool and lcMover and other developer tools
https://charlesbuchwald.com