Sorry those should be ListAdapters not ArrayAdapters.  A question
about a spinner got me all mixed up.

On Apr 8, 8:50 am, loweroctave <[email protected]> wrote:
> Put a get and set function in your application class that lets you
> interact with the variable you need to pass around.  Then in your
> listactivity class get a reference to the application class with
> getApplicationContext();.
>
> As far as getting it into the list, you just need to put it into an
> ArrayAdapter adapter using adapter.add and then you can do
> listview.setAdapter(adapter).
>
> On Apr 8, 8:47 am, Duskox <[email protected]> wrote:
>
>
>
>
>
>
>
> > I guess it is either too complicated question or badly asked.
>
> > To simplify it:
>
> > Here is one class definition.
>
> > Class x {
>
> > string mName;
> > int mID;
> > ArrayList mTmrs;
>
> > }
>
> > in the class that extends application I create a public variable like
> > this:
> > public ArrayList mList;
>
> > in that list I insert several objects of class x.
>
> > how do I create data for ListView from this mList array from mName
> > variable?
>
> > Thanks!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to