Re: [android-developers] Listview show funny stuff

2012-04-23 Thread YuviDroid
Add a toString() method in the Client class that returns the "Name".

On Fri, Apr 20, 2012 at 4:13 AM, Ricardo Rivera  wrote:

> I a listview connecto to a datbase and is showing in the list the value of
> the record for the app. Something like
>
> com.software.myapp.client.client@44abc0
> com.software.myapp.client.client@44abc1
> etc in the list
>
> I want to show only to show the Client Name
>
> Here is my Table scheme
> Client Id,Name,Addrs,Phone
>
> setContentView(R.layout.clientlist);
> clientds = new ClientDataSource(this);
> clientds.open();
>
> List values = clientds.getAllClients();
> ArrayAdapter adapter = new ArrayAdapter(this,
> android.R.layout.simple_list_item_1, values);
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
YuviDroid
Check out Launch-X  (a widget
to quickly access your favorite apps and contacts!)
http://android.yuvalsharon.net

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

Re: [android-developers] Listview show funny stuff

2012-04-22 Thread Gink Labrev
You are returning a list of Client class objects.
You need to implements a method that returns a list of client name String.

Em 19 de abril de 2012 23:13, Ricardo Rivera  escreveu:

> I a listview connecto to a datbase and is showing in the list the value of
> the record for the app. Something like
>
> com.software.myapp.client.client@44abc0
> com.software.myapp.client.client@44abc1
> etc in the list
>
> I want to show only to show the Client Name
>
> Here is my Table scheme
> Client Id,Name,Addrs,Phone
>
> setContentView(R.layout.clientlist);
> clientds = new ClientDataSource(this);
> clientds.open();
>
> List values = clientds.getAllClients();
> ArrayAdapter adapter = new ArrayAdapter(this,
> android.R.layout.simple_list_item_1, values);
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

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

[android-developers] Listview show funny stuff

2012-04-22 Thread Ricardo Rivera
I a listview connecto to a datbase and is showing in the list the value of 
the record for the app. Something like 

com.software.myapp.client.client@44abc0
com.software.myapp.client.client@44abc1
etc in the list

I want to show only to show the Client Name

Here is my Table scheme
Client Id,Name,Addrs,Phone

setContentView(R.layout.clientlist);
clientds = new ClientDataSource(this);
clientds.open();

List values = clientds.getAllClients();
ArrayAdapter adapter = new ArrayAdapter(this,
android.R.layout.simple_list_item_1, values);

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