[android-developers] Re: Join via ContentProvider

2008-12-17 Thread Luke w
I also want to know how the layout can be implemented.
Image1  
Image2  
Image3  

BR,
Luke Wang

Jay London  - "I was going to buy a book on hair loss, but the pages kept
falling out."

On Mon, Nov 3, 2008 at 1:25 PM, for android  wrote:

> Also i was interested in know when I expand a group ,is there any way i
> change image other than implementing the
> public void setOnGroupExpandListener(
> ExpandableListView.OnGroupExpandListeneronGroupExpandListener)
>  and then chagning the image through the api reference
> u  provided.
>
> Also,can I have different images as indicators to each item of the group in
> an expandable list.Thats something like this
>
> Image1  
> Image2  
> Image3  
>
>
> Thanks for your time
>
>
>
>
>
> On Mon, Nov 3, 2008 at 10:39 AM, jtaylor  wrote:
>
>>
>> public void setGroupIndicator(Drawable groupIndicator)
>>
>> http://code.google.com/android/reference/android/widget/ExpandableListView.html#setGroupIndicator(android.graphics.drawable.Drawable)
>>
>>
>> - Juan T.
>>
>>
>> On Oct 29, 4:00 am, "for android"  wrote:
>> > How can i create a customised Expandable list where the group identifer
>> > image is different than the already given ones in the apis..
>> >
>> > On Mon, Oct 27, 2008 at 6:46 PM, jtaylor  wrote:
>> >
>> > > I'm just supposing that each class is a table. I don't know how
>> > > android.provider is set up, though I guess one can now see from the
>> > > source code.
>> >
>> > > - Juan
>> >
>> > > On Oct 27, 9:15 am, jtaylor  wrote:
>> > > > That looks like two tables.
>> >
>> > > > Contacts.People
>> > > > Contacts.People.Phones
>> >
>> > > > - Juan
>> >
>> > > > On Oct 26, 12:52 pm, Anm  wrote:
>> >
>> > > > > jtaylor,
>> > > > > Did you read the example?  It does not do a joint.  Instead it
>> uses a
>> > > > > Uri subpath notation for its child query, within the same table
>> rather
>> > > > > than joining multiple tables.  The references to "group" in the
>> code
>> > > > > are not contact group membership, but rather ExpandableList parent
>> > > > > node/"groups".
>> >
>> > > > > On Oct 25, 11:51 am, jtaylor  wrote:
>> >
>> > > > > > ExpandableList2.java has the getChildrenCursor() (in the
>> > > > > > MyExpandableListAdapter inner class) which has the code for
>> obviously
>> > > > > > a contentprovider Join.
>> >
>> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
>> ..
>> >
>> > > > > > - Juan
>> >
>> > > > > > On Oct 25, 2:47 pm, jtaylor  wrote:
>> >
>> > > > > > > ExpandableList2.
>> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
>> ..
>> >
>> > > > > > > - Juan
>> >
>> > > > > > > On Oct 24, 3:05 am, Anm  wrote:
>> >
>> > > > > > > > I'm struggling to understand how to do a join, if its
>> possible,
>> > > with
>> > > > > > > > the decomposed SQL arguments of the ContentProvider APIs.
>>  Is
>> > > there an
>> > > > > > > > example out there?
>> >
>> > > > > > > > Or if not, could some code up a quick example, say joining
>> People
>> > > with
>> > > > > > > > GroupMembership?
>>
>>
>
> >
>

--~--~-~--~~~---~--~~
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] Re: Join via ContentProvider

2008-10-24 Thread zero

it depends on what you're up to.
if you just want to join accross tables,
in a contentprovider, you can do that
with the querybuilder object.
also, from the "outside", afaik it's
possible to use sql syntax in the
selectstring.
if you want to join data *across*
different contentproviders,
(meaning across different databases),
thats going to be hard.
easiest way i found to do that is
creating another provider which
effectively doubles the data and syncing
that every time the app starts.

On Oct 24, 9:05 am, Anm <[EMAIL PROTECTED]> wrote:
> I'm struggling to understand how to do a join, if its possible, with
> the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> example out there?
>
> Or if not, could some code up a quick example, say joining People with
> GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-24 Thread Evan JIANG
There's a android.database.CursorJoiner class to join 2 cursors

On Fri, Oct 24, 2008 at 5:44 PM, zero <[EMAIL PROTECTED]> wrote:

>
> it depends on what you're up to.
> if you just want to join accross tables,
> in a contentprovider, you can do that
> with the querybuilder object.
> also, from the "outside", afaik it's
> possible to use sql syntax in the
> selectstring.
> if you want to join data *across*
> different contentproviders,
> (meaning across different databases),
> thats going to be hard.
> easiest way i found to do that is
> creating another provider which
> effectively doubles the data and syncing
> that every time the app starts.
>
> On Oct 24, 9:05 am, Anm <[EMAIL PROTECTED]> wrote:
> > I'm struggling to understand how to do a join, if its possible, with
> > the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> > example out there?
> >
> > Or if not, could some code up a quick example, say joining People with
> > GroupMembership?
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-24 Thread Anm



On Oct 24, 2:47 am, "Evan JIANG" <[EMAIL PROTECTED]> wrote:
> There's a android.database.CursorJoiner class to join 2 cursors


Excellent.

Too bad about the sort prerequisite.  Looks like we need a SortCursor,
since sorting on _id is nearly useless.

For my app, I don't expect the results to be long, so the naive
approach of listing indices, or reforming the results as a
MatrixCursor isn't too bad.  But I'm wondering if there might be
another algorithm or existing implementation I should be aware of
before I dive into my own.
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-25 Thread jtaylor

ExpandableList2.
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html



- Juan



On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
> I'm struggling to understand how to do a join, if its possible, with
> the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> example out there?
>
> Or if not, could some code up a quick example, say joining People with
> GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-25 Thread jtaylor

ExpandableList2.java has the getChildrenCursor() (in the
MyExpandableListAdapter inner class) which has the code for obviously
a contentprovider Join.

http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html


- Juan

On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
> ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> - Juan
>
> On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > I'm struggling to understand how to do a join, if its possible, with
> > the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> > example out there?
>
> > Or if not, could some code up a quick example, say joining People with
> > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-26 Thread Anm

jtaylor,
Did you read the example?  It does not do a joint.  Instead it uses a
Uri subpath notation for its child query, within the same table rather
than joining multiple tables.  The references to "group" in the code
are not contact group membership, but rather ExpandableList parent
node/"groups".

On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
> ExpandableList2.java has the getChildrenCursor() (in the
> MyExpandableListAdapter inner class) which has the code for obviously
> a contentprovider Join.
>
> http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> - Juan
>
> On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > - Juan
>
> > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > I'm struggling to understand how to do a join, if its possible, with
> > > the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> > > example out there?
>
> > > Or if not, could some code up a quick example, say joining People with
> > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-27 Thread jtaylor

That looks like two tables.

Contacts.People
Contacts.People.Phones


- Juan

On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
> jtaylor,
> Did you read the example?  It does not do a joint.  Instead it uses a
> Uri subpath notation for its child query, within the same table rather
> than joining multiple tables.  The references to "group" in the code
> are not contact group membership, but rather ExpandableList parent
> node/"groups".
>
> On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > ExpandableList2.java has the getChildrenCursor() (in the
> > MyExpandableListAdapter inner class) which has the code for obviously
> > a contentprovider Join.
>
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > - Juan
>
> > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > - Juan
>
> > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > I'm struggling to understand how to do a join, if its possible, with
> > > > the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> > > > example out there?
>
> > > > Or if not, could some code up a quick example, say joining People with
> > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-27 Thread jtaylor

I'm just supposing that each class is a table. I don't know how
android.provider is set up, though I guess one can now see from the
source code.


- Juan

On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> That looks like two tables.
>
> Contacts.People
> Contacts.People.Phones
>
> - Juan
>
> On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
>
> > jtaylor,
> > Did you read the example?  It does not do a joint.  Instead it uses a
> > Uri subpath notation for its child query, within the same table rather
> > than joining multiple tables.  The references to "group" in the code
> > are not contact group membership, but rather ExpandableList parent
> > node/"groups".
>
> > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > ExpandableList2.java has the getChildrenCursor() (in the
> > > MyExpandableListAdapter inner class) which has the code for obviously
> > > a contentprovider Join.
>
> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > - Juan
>
> > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > ExpandableList2.http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > - Juan
>
> > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > I'm struggling to understand how to do a join, if its possible, with
> > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is there an
> > > > > example out there?
>
> > > > > Or if not, could some code up a quick example, say joining People with
> > > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-29 Thread for android
How can i create a customised Expandable list where the group identifer
image is different than the already given ones in the apis..

On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:

>
> I'm just supposing that each class is a table. I don't know how
> android.provider is set up, though I guess one can now see from the
> source code.
>
>
> - Juan
>
> On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > That looks like two tables.
> >
> > Contacts.People
> > Contacts.People.Phones
> >
> > - Juan
> >
> > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
> >
> > > jtaylor,
> > > Did you read the example?  It does not do a joint.  Instead it uses a
> > > Uri subpath notation for its child query, within the same table rather
> > > than joining multiple tables.  The references to "group" in the code
> > > are not contact group membership, but rather ExpandableList parent
> > > node/"groups".
> >
> > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
> >
> > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > MyExpandableListAdapter inner class) which has the code for obviously
> > > > a contentprovider Join.
> >
> > > >
> http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
> >
> > > > - Juan
> >
> > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
> >
> > > > > ExpandableList2.
> http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
> >
> > > > > - Juan
> >
> > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
> >
> > > > > > I'm struggling to understand how to do a join, if its possible,
> with
> > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> there an
> > > > > > example out there?
> >
> > > > > > Or if not, could some code up a quick example, say joining People
> with
> > > > > > GroupMembership?
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-29 Thread jtaylor

I looked at the Hierarchy Viewer and it just shows two id/tex1 views
below the ExpandableListView. So it must be interior to Android.


- Juan

On Oct 29, 5:00 am, "for android" <[EMAIL PROTECTED]> wrote:
> How can i create a customised Expandable list where the group identifer
> image is different than the already given ones in the apis..
>
> On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > I'm just supposing that each class is a table. I don't know how
> > android.provider is set up, though I guess one can now see from the
> > source code.
>
> > - Juan
>
> > On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > > That looks like two tables.
>
> > > Contacts.People
> > > Contacts.People.Phones
>
> > > - Juan
>
> > > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > jtaylor,
> > > > Did you read the example?  It does not do a joint.  Instead it uses a
> > > > Uri subpath notation for its child query, within the same table rather
> > > > than joining multiple tables.  The references to "group" in the code
> > > > are not contact group membership, but rather ExpandableList parent
> > > > node/"groups".
>
> > > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > > MyExpandableListAdapter inner class) which has the code for obviously
> > > > > a contentprovider Join.
>
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > - Juan
>
> > > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > ExpandableList2.
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > > - Juan
>
> > > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I'm struggling to understand how to do a join, if its possible,
> > with
> > > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> > there an
> > > > > > > example out there?
>
> > > > > > > Or if not, could some code up a quick example, say joining People
> > with
> > > > > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-10-29 Thread jtaylor

I should have said I looked at the Hierarchy Viewer for
ExpandableList2 demo.
http://code.google.com/android/samples/ApiDemos/src/com/example/android/apis/view/ExpandableList2.html


- Juan


On Oct 29, 11:18 am, jtaylor <[EMAIL PROTECTED]> wrote:
> I looked at the Hierarchy Viewer and it just shows two id/tex1 views
> below the ExpandableListView. So it must be interior to Android.
>
> - Juan
>
> On Oct 29, 5:00 am, "for android" <[EMAIL PROTECTED]> wrote:
>
> > How can i create a customised Expandable list where the group identifer
> > image is different than the already given ones in the apis..
>
> > On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > I'm just supposing that each class is a table. I don't know how
> > > android.provider is set up, though I guess one can now see from the
> > > source code.
>
> > > - Juan
>
> > > On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > > > That looks like two tables.
>
> > > > Contacts.People
> > > > Contacts.People.Phones
>
> > > > - Juan
>
> > > > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > jtaylor,
> > > > > Did you read the example?  It does not do a joint.  Instead it uses a
> > > > > Uri subpath notation for its child query, within the same table rather
> > > > > than joining multiple tables.  The references to "group" in the code
> > > > > are not contact group membership, but rather ExpandableList parent
> > > > > node/"groups".
>
> > > > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > > > MyExpandableListAdapter inner class) which has the code for 
> > > > > > obviously
> > > > > > a contentprovider Join.
>
> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > > - Juan
>
> > > > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > > ExpandableList2.
> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > > > - Juan
>
> > > > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > I'm struggling to understand how to do a join, if its possible,
> > > with
> > > > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> > > there an
> > > > > > > > example out there?
>
> > > > > > > > Or if not, could some code up a quick example, say joining 
> > > > > > > > People
> > > with
> > > > > > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-11-02 Thread jtaylor



public void setGroupIndicator(Drawable groupIndicator)
http://code.google.com/android/reference/android/widget/ExpandableListView.html#setGroupIndicator(android.graphics.drawable.Drawable)


- Juan T.


On Oct 29, 4:00 am, "for android" <[EMAIL PROTECTED]> wrote:
> How can i create a customised Expandable list where the group identifer
> image is different than the already given ones in the apis..
>
> On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > I'm just supposing that each class is a table. I don't know how
> > android.provider is set up, though I guess one can now see from the
> > source code.
>
> > - Juan
>
> > On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > > That looks like two tables.
>
> > > Contacts.People
> > > Contacts.People.Phones
>
> > > - Juan
>
> > > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > jtaylor,
> > > > Did you read the example?  It does not do a joint.  Instead it uses a
> > > > Uri subpath notation for its child query, within the same table rather
> > > > than joining multiple tables.  The references to "group" in the code
> > > > are not contact group membership, but rather ExpandableList parent
> > > > node/"groups".
>
> > > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > > MyExpandableListAdapter inner class) which has the code for obviously
> > > > > a contentprovider Join.
>
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > - Juan
>
> > > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > ExpandableList2.
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > > - Juan
>
> > > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I'm struggling to understand how to do a join, if its possible,
> > with
> > > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> > there an
> > > > > > > example out there?
>
> > > > > > > Or if not, could some code up a quick example, say joining People
> > with
> > > > > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-11-02 Thread jtaylor

public void setGroupIndicator(Drawable groupIndicator)
http://code.google.com/android/reference/android/widget/ExpandableListView.html#setGroupIndicator(android.graphics.drawable.Drawable)


- Juan T.


On Oct 29, 4:00 am, "for android" <[EMAIL PROTECTED]> wrote:
> How can i create a customised Expandable list where the group identifer
> image is different than the already given ones in the apis..
>
> On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > I'm just supposing that each class is a table. I don't know how
> > android.provider is set up, though I guess one can now see from the
> > source code.
>
> > - Juan
>
> > On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > > That looks like two tables.
>
> > > Contacts.People
> > > Contacts.People.Phones
>
> > > - Juan
>
> > > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > jtaylor,
> > > > Did you read the example?  It does not do a joint.  Instead it uses a
> > > > Uri subpath notation for its child query, within the same table rather
> > > > than joining multiple tables.  The references to "group" in the code
> > > > are not contact group membership, but rather ExpandableList parent
> > > > node/"groups".
>
> > > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > > MyExpandableListAdapter inner class) which has the code for obviously
> > > > > a contentprovider Join.
>
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > - Juan
>
> > > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > ExpandableList2.
> >http://code.google.com/android/samples/ApiDemos/src/com/example/andro...
>
> > > > > > - Juan
>
> > > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > > > I'm struggling to understand how to do a join, if its possible,
> > with
> > > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> > there an
> > > > > > > example out there?
>
> > > > > > > Or if not, could some code up a quick example, say joining People
> > with
> > > > > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-11-02 Thread for android
Also i was interested in know when I expand a group ,is there any way i
change image other than implementing the
public void setOnGroupExpandListener(
ExpandableListView.OnGroupExpandListeneronGroupExpandListener)
and then chagning the image through the api reference
u  provided.

Also,can I have different images as indicators to each item of the group in
an expandable list.Thats something like this

Image1  
Image2  
Image3  


Thanks for your time




On Mon, Nov 3, 2008 at 10:39 AM, jtaylor <[EMAIL PROTECTED]> wrote:

>
> public void setGroupIndicator(Drawable groupIndicator)
>
> http://code.google.com/android/reference/android/widget/ExpandableListView.html#setGroupIndicator(android.graphics.drawable.Drawable)
>
>
> - Juan T.
>
>
> On Oct 29, 4:00 am, "for android" <[EMAIL PROTECTED]> wrote:
> > How can i create a customised Expandable list where the group identifer
> > image is different than the already given ones in the apis..
> >
> > On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:
> >
> > > I'm just supposing that each class is a table. I don't know how
> > > android.provider is set up, though I guess one can now see from the
> > > source code.
> >
> > > - Juan
> >
> > > On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > > > That looks like two tables.
> >
> > > > Contacts.People
> > > > Contacts.People.Phones
> >
> > > > - Juan
> >
> > > > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
> >
> > > > > jtaylor,
> > > > > Did you read the example?  It does not do a joint.  Instead it uses
> a
> > > > > Uri subpath notation for its child query, within the same table
> rather
> > > > > than joining multiple tables.  The references to "group" in the
> code
> > > > > are not contact group membership, but rather ExpandableList parent
> > > > > node/"groups".
> >
> > > > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
> >
> > > > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > > > MyExpandableListAdapter inner class) which has the code for
> obviously
> > > > > > a contentprovider Join.
> >
> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
> ..
> >
> > > > > > - Juan
> >
> > > > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > ExpandableList2.
> > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
> ..
> >
> > > > > > > - Juan
> >
> > > > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > > I'm struggling to understand how to do a join, if its
> possible,
> > > with
> > > > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> > > there an
> > > > > > > > example out there?
> >
> > > > > > > > Or if not, could some code up a quick example, say joining
> People
> > > with
> > > > > > > > GroupMembership?
> >
>

--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: Join via ContentProvider

2008-11-03 Thread jtaylor

To change the indicator when expanded, you can do something with the
state_expanded state. In the drawable which indicates the Drawable
parameter of setGroupIndicator(drawable), you set the state_expanded
state in the context of a stateful Drawable. Don't see any examples of
how do do this.

http://code.google.com/android/reference/android/R.styleable.html#ExpandableListGroupIndicatorState_state_expanded


- Juan T.



On Nov 3, 12:25 am, "for android" <[EMAIL PROTECTED]> wrote:
> Also i was interested in know when I expand a group ,is there any way i
> change image other than implementing the
> public void setOnGroupExpandListener(
> ExpandableListView.OnGroupExpandListeneronGroupExpandListener)
> and then chagning the image through the api reference
> u  provided.
>
> Also,can I have different images as indicators to each item of the group in
> an expandable list.Thats something like this
>
> Image1  
> Image2  
> Image3  
>
> Thanks for your time
>
> On Mon, Nov 3, 2008 at 10:39 AM, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > public void setGroupIndicator(Drawable groupIndicator)
>
> >http://code.google.com/android/reference/android/widget/ExpandableLis...)
>
> > - Juan T.
>
> > On Oct 29, 4:00 am, "for android" <[EMAIL PROTECTED]> wrote:
> > > How can i create a customised Expandable list where the group identifer
> > > image is different than the already given ones in the apis..
>
> > > On Mon, Oct 27, 2008 at 6:46 PM, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > I'm just supposing that each class is a table. I don't know how
> > > > android.provider is set up, though I guess one can now see from the
> > > > source code.
>
> > > > - Juan
>
> > > > On Oct 27, 9:15 am, jtaylor <[EMAIL PROTECTED]> wrote:
> > > > > That looks like two tables.
>
> > > > > Contacts.People
> > > > > Contacts.People.Phones
>
> > > > > - Juan
>
> > > > > On Oct 26, 12:52 pm, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > > jtaylor,
> > > > > > Did you read the example?  It does not do a joint.  Instead it uses
> > a
> > > > > > Uri subpath notation for its child query, within the same table
> > rather
> > > > > > than joining multiple tables.  The references to "group" in the
> > code
> > > > > > are not contact group membership, but rather ExpandableList parent
> > > > > > node/"groups".
>
> > > > > > On Oct 25, 11:51 am, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > > ExpandableList2.java has the getChildrenCursor() (in the
> > > > > > > MyExpandableListAdapter inner class) which has the code for
> > obviously
> > > > > > > a contentprovider Join.
>
> > > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
> > ..
>
> > > > > > > - Juan
>
> > > > > > > On Oct 25, 2:47 pm, jtaylor <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > ExpandableList2.
> > > >http://code.google.com/android/samples/ApiDemos/src/com/example/andro.
> > ..
>
> > > > > > > > - Juan
>
> > > > > > > > On Oct 24, 3:05 am, Anm <[EMAIL PROTECTED]> wrote:
>
> > > > > > > > > I'm struggling to understand how to do a join, if its
> > possible,
> > > > with
> > > > > > > > > the decomposed SQL arguments of the ContentProvider APIs.  Is
> > > > there an
> > > > > > > > > example out there?
>
> > > > > > > > > Or if not, could some code up a quick example, say joining
> > People
> > > > with
> > > > > > > > > GroupMembership?
--~--~-~--~~~---~--~~
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
[EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---