From: Re JMD <rjmdf...@gmail.com>
Date: Wed, 17 Oct 2012 10:49:22 -0300
Local: Wed, Oct 17 2012 9:49 am
Subject: Re: [android-developers] - Spinner displaying map of Class in prompt.
2012/10/15 Re JMD <rjmdf...@gmail.com>
> Mark,
> You said that i should change the method .toString, but if i change this
> 2012/10/15 Re JMD <rjmdf...@gmail.com>
>> Mark,
>> For we have a view better, bellow the Sppiner Adapter and method that i
>> *Call Spinner:*
>> listaTpestabelecimento = getTpEstabelecimentoList(cd_objeto);
>> *Sppiner Adapter:*
>> public class SpinnerAdapter extends ArrayAdapter<Tpestabelecimento>
>> public SpinnerAdapter(Activity context, int resource,
>> @Override
>> @Override
>> Tpestabelecimento item = data.get(position);
>> if(item != null)
>> nomeObjeto.setText(item.getNome());
>> }
>> return row;
>> *Method return list:*
>> public ArrayList<Tpestabelecimento> getTpEstabelecimentoList(String
>> SoapObject request = new SoapObject(NAMESPACESOAP_ACTION1, METHOD_NAME4);
>> SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
>> envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
>> HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
>> try {
>> androidHttpTransport.call(SOAP_ACTION4, envelope);
>> int count = results.getPropertyCount();
>> for (int i = 0; i < count; i++) {
>> Tpestabelecimento tp = new Tpestabelecimento();
>> SoapObject obj = (SoapObject) results.getProperty(i);
>> SoapPrimitive cd_tpestabelecimento_pr = (SoapPrimitive) obj
>> SoapPrimitive nome_tpestabelecimento_pr = (SoapPrimitive) obj
>> tp.setCd_tpestabelecimento(Integer.parseInt(cd_tpestabelecimento_pr
>> listaTpestabelecimento.add(tp);
>> }
>> 2012/10/15 Mark Murphy <mmur...@commonsware.com>
>>> You neglected to post any code. Presumably, you are just passing an
>>> On Mon, Oct 15, 2012 at 8:25 AM, Re JMD <rjmdf...@gmail.com> wrote:
>>>> Guys,
>>>> Any Ideia?
>>>> 2012/10/14 Re JMD <rjmdf...@gmail.com>
>>>>> Guys,
>>>>> I'm having a problem to show a Spinner, he display information of List
>>>>> Action 1 - Prompt not correct
>>>>> Action 2 - List Correct
>>>>> Action 3 - iten select not display correct
>>>> --
>>> --
>>> _The Busy Coder's Guide to Android Development_ Version 4.2 Available!
>>> --
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.
| |||||||||||||||||||||||