Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion using a ListPicker in JavaBridge
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
David W Wolber  
View profile  
 More options Feb 20 2012, 12:26 pm
From: David W Wolber <wolb...@usfca.edu>
Date: Mon, 20 Feb 2012 09:26:51 -0800
Local: Mon, Feb 20 2012 12:26 pm
Subject: Re: using a ListPicker in JavaBridge

When you call the get coordinates from address, make sure the thing
returned back to you isn't null.

Dave

On Mon, Feb 20, 2012 at 9:25 AM, David W Wolber <wolb...@usfca.edu> wrote:

> Hi Bernhard. I'll play with this now,

> Dave

> On Mon, Feb 20, 2012 at 8:47 AM, Bernhard Schelling <
> bernhard.schell...@gmail.com> wrote:

>> Unfortunately I think I can't use the suggested solution:

>> As far as i can see the makeList method from YailList is static -
>> therefore it requires
>> a static strArray. Since I have to generate the list elements on the
>> fly, I don't  think
>> i will be able to use it.

>>        YailList yailList = YailList.makeList(strArray);

>> If I try to do a new YailList and than YailList.setItems I can only
>> get to ListPickerCheckbox.Elements - which again wants
>> a static yailList.

>> I have to come up with a solution and I'm running out of time - so for
>> the time being,  I'll go for a Dialog.
>> Comments welcome :)

>> Bernhard

>> On Mon, Feb 20, 2012 at 8:08 AM, Bernhard Schelling
>> <bernhard.schell...@gmail.com> wrote:
>> > Ok thanks I'll try that.
>> > Could you give a short explanation of why the BeforePicking event is
>> > not the right way to populate
>> > the Picker with data?
>> > Bernhard

>> > On Mon, Feb 20, 2012 at 7:33 AM, M. Hossein Amerkashi
>> > <kkash...@gmail.com> wrote:
>> >> The process that I do is basically as follows:

>> >> create a ListPicker (e.g. picker) and set its visibility to false
>> >> create a Button (e.g. btn1) and set its text and all
>> >> register Click event
>> >> when Click and component is btn1, then:
>> >> load your picker elements
>> >> picker.open

>> >> Hope this helps,
>> >> Hossein.

>> >> On Mon, Feb 20, 2012 at 1:00 AM, bernhard <
>> bernhard.schell...@gmail.com>
>> >> wrote:

>> >>> Hi,

>> >>> i'd like to use a ListPicker, which options should be filled
>> >>> dynamically.

>> >>> To fill the ListPicker I thougt I would just override the
>> >>> BeforePicking and fill the listpicker with elements.
>> >>> Unfortunately I'm stuck here.
>> >>> The app crashes as soon as i call my function getCoordsFromLocation...

>> >>> Any hints?

>> >>> bernhard

>> >>> public class myListPickerCheckbox extends ListPickerCheckbox {

>> >>>                public myListPickerCheckbox(ComponentContainer
>> container) {
>> >>>                        super(container);
>> >>>                }

>> >>>                @Override
>> >>>                public void BeforePicking() {
>> >>>                        super.BeforePicking();
>> >>>                        strArray = getCoordsFromLocation("789 38th
>> ave");
>> >>>                        YailList yailList =
>> YailList.makeList(strArray);
>> >>>                        this.Elements(yailList);
>> >>>                        this.SelectionStlye(Component.SINGLE_CHOICE);
>> >>>                        Log.d("no", "picker opened");
>> >>>                }
>> >>> }


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.