Thursday, December 27, 2012

[android-developers] Re: how to query from two unrelated tables and display data in same listview

On 27 Gru, 06:46, Vijay Krishnan <vijay.vijay...@gmail.com> wrote:
> Hi skink,
>
>           cursors point to different tables and tables have different
> column names.How do i know that this cursor points to this table?
>          How do i display data from different tables?
> Regards,
> vijay.k
>
>
>

if the data in both tables is the same but differs only in column
names (for example you have a column fname in the first table and
first_name in the second) you could try set the column name in the
select statement:

select something as newColumnName...

if the data is totally different you have to override getView in your
adapter

pskink

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate