Page 1 of 1

Anroid Modal Pick-Wheel?

Posted: Thu May 03, 2012 10:08 pm
by Peregrine
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

Re: Anroid Modal Pick-Wheel?

Posted: Thu May 03, 2012 10:45 pm
by Dixie
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

Re: Anroid Modal Pick-Wheel?

Posted: Thu May 03, 2012 11:32 pm
by Peregrine
Hmmm... Thanks, Dixie, but no luck. This also crashes.

Re: Anroid Modal Pick-Wheel?

Posted: Fri May 04, 2012 1:06 am
by Dixie
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

Re: Anroid Modal Pick-Wheel?

Posted: Fri May 04, 2012 4:05 am
by Peregrine
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?