RE: Android FruitBasket

  • From: "Ken Perry" <whistler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 17 Jan 2011 23:26:16 -0500

Your right as I said in that last email it was a warning that I didn't
understand what I missed.  It was one of those blind spot code things.  I
just missed it.  When I saw your code I didn't see the <> in the email so I
thought you changed it to a fixed array tonight is not my night I guess
snicker.

 

Ken

 

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Sina Bahram
Sent: Monday, January 17, 2011 11:19 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Android FruitBasket

 

Why?

 

All you are saying is that it's a parametrized type of ArrayAdaptor for
CharSequence objects.

 

Now obviously, it will expect CharSequence objects, and not Strings, which
begs the question, why did you use CharSequence over String?

 

Does String autobox to CharSequence.? Your code implies that it does, btw.

 

Take care,

Sina

 

 

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Perry
Sent: Monday, January 17, 2011 11:16 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Android FruitBasket

 

 

Ok I am no expert but from what I understand Android will throw an exception
if I try to delete from one if I do it your way.  I will give it a shot
though.

 

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Sina Bahram
Sent: Monday, January 17, 2011 11:01 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: RE: Android FruitBasket

 

Another question.

 

You have:

 

                        m_adapterForSpinner = new ArrayAdapter(this,
android.R.layout.simple_spinner_item);

 

shouldn't that be:

 

                        m_adapterForSpinner = new
ArrayAdapter<CharSequence>(this, android.R.layout.simple_spinner_item);

 

 

if no, then why bother being more restrictive up top in your definition of
the m_adapterForSpinner instance variable?

 

Take care,

Sina

 

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Ken Perry
Sent: Monday, January 17, 2011 10:35 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Android FruitBasket

 

 

 

I have just added a very simple Android FruitBasket to the list.  The
problem is making the program is simple getting it to run on an emulator if
you don't have one set up is a little harder.  I put the link to the getting
started page and some other notes with it on www.fruitbasketdemos.org.  

 

A note for Jim and Jamal 

 the file browsing portion of Druple seems to suck with Jaws.  I will have
to test this at work.

 

Ken

 

Other related posts: