Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #2624

Re: ArrayAdapter

Path csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!nntp.posted.palinacquisition!news.posted.palinacquisition.POSTED!not-for-mail
NNTP-Posting-Date Wed, 30 Mar 2011 21:42:33 -0500
Date Wed, 30 Mar 2011 19:42:32 -0700
From Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com>
User-Agent Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7
MIME-Version 1.0
Newsgroups comp.lang.java.programmer
Subject Re: ArrayAdapter
References <8vi26oFvh2U1@mid.individual.net> <3gp7p61ll8h7nqogtnfu2ka1mddt0sg43d@4ax.com>
In-Reply-To <3gp7p61ll8h7nqogtnfu2ka1mddt0sg43d@4ax.com>
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Message-ID <waidnfWf8amEdw7QnZ2dnUVZ_uOdnZ2d@posted.palinacquisition> (permalink)
Lines 29
X-Usenet-Provider http://www.giganews.com
NNTP-Posting-Host 50.46.118.188
X-Trace sv3-78lweWWPLCqFv46wm7dH0EuNVpBf7F9AQQM/YtJgDZwmkmBde+UZGnBe/GBw9ehYPTC+qEzqyNJ659G!y/BC7c43c4/Jrt6yI8miuvbrSQHxMMcumoVdwx4TSslgcJL1eVh2NXETQcXWWWk/m0TbkEVsSByb!9RdIhSVVNsAnufBFJPnPYQreazpiCYM6CC1NYLgjl1E=
X-Complaints-To abuse@iinet.com
X-DMCA-Complaints-To abuse@iinet.com
X-Abuse-and-DMCA-Info Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info Otherwise we will be unable to process your complaint properly
X-Postfilter 1.3.40
X-Original-Bytes 2464
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:2624

Show key headers only | View raw


On 3/30/11 7:25 PM, Roedy Green wrote:
> On Thu, 31 Mar 2011 02:03:24 +0100, Dirk Bruere at NeoPax
> <dirk.bruere@gmail.com>  wrote, quoted or indirectly quoted someone who
> said :
>
>> I have an ArrayAdapter in main.
>> How do I access it from another class?
>
> You would have to show some code. I have never heard of an
> ArrayAdapter.

I assume he's referring to this:
http://developer.android.com/reference/android/widget/ArrayAdapter.html

First link on Google and Bing.

That said, it really doesn't matter what the type of the object is. 
It's still just going to be a normal object reference.  And accessing 
object references that exist in one class from another class is always 
done the same way: either provide a method or field in the owning class 
that will return it, or pass/assign the value of the reference to a 
method/field in the accessing class.

Basically, it's one of the first things someone ought to learn when 
learning how to program in an OOP language.  Classes that can't get 
values from the instance of one class to the instance of another usually 
aren't that useful.

Pete

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 02:03 +0100
  Re: ArrayAdapter Roedy Green <see_website@mindprod.com.invalid> - 2011-03-30 19:25 -0700
    Re: ArrayAdapter Peter Duniho <NpOeStPeAdM@NnOwSlPiAnMk.com> - 2011-03-30 19:42 -0700
      Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 04:50 +0100
  Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-03-31 16:02 +1300
  Re: ArrayAdapter Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-03-31 06:57 -0300
    Re: ArrayAdapter Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-03-31 10:19 +0000
      Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 12:21 +0100
        Java OOP tutorial (Was: ArrayAdapter) Michal Kleczek <kleku75@gmail.com> - 2011-03-31 13:52 +0200
          Re: Java OOP tutorial (Was: ArrayAdapter) Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 13:16 +0100
          Re: Java OOP tutorial (Was: ArrayAdapter) "John B. Matthews" <nospam@nospam.invalid> - 2011-03-31 16:19 -0400
        Re: ArrayAdapter Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-03-31 14:47 +0100
          Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 15:32 +0100
            Re: ArrayAdapter Nigel Wade <nmw-news@ion.le.ac.uk> - 2011-03-31 15:42 +0100
              Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 16:35 +0100
                Re: ArrayAdapter markspace <-@.> - 2011-03-31 09:56 -0700
                Re: ArrayAdapter Patricia Shanahan <pats@acm.org> - 2011-03-31 10:09 -0700
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 21:26 +0100
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-03-31 21:29 +0100
                Re: ArrayAdapter Patricia Shanahan <pats@acm.org> - 2011-03-31 13:50 -0700
                Re: ArrayAdapter markspace <-@.> - 2011-03-31 15:27 -0700
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 00:42 +0100
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 00:38 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:08 +1300
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 01:10 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:45 +1300
        Re: ArrayAdapter Andreas Leitgeb <avl@gamma.logic.tuwien.ac.at> - 2011-03-31 17:31 +0000
        Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:06 +1300
          Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-01 01:13 +0100
            Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-01 13:35 +1300
  Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 02:41 +0100
    Re: ArrayAdapter Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2011-04-02 04:19 +0200
      Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 03:55 +0100
        Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-02 17:12 +1300
          Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 05:18 +0100
            Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-02 19:58 +1300
              Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-02 14:48 +0100
                Re: ArrayAdapter Lew <noone@lewscanon.com> - 2011-04-02 10:48 -0400
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-03 10:50 +1200
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 01:41 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-03 12:53 +1200
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 02:52 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-03 19:56 +1200
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 17:07 +0100
                Re: ArrayAdapter Dirk Bruere at NeoPax <dirk.bruere@gmail.com> - 2011-04-03 17:27 +0100
                Re: ArrayAdapter Lawrence D'Oliveiro <ldo@geek-central.gen.new_zealand> - 2011-04-04 10:19 +1200
                Re: ArrayAdapter Arved Sandstrom <asandstrom3minus1@eastlink.ca> - 2011-04-03 22:55 -0300

csiph-web