views:

93

answers:

3

I have recently started working on Android. I want to know when and where adapters are used and how they are used. I didn't get much information from androids developer documentation.

A: 

Adapters are basically used to deliver content. One adapter you probably have in every application is the CursorAdapter which enables you to deliver content given by a cursor from a database query. A ListView has nearly always some sort of Adapter.

WarrenFaith
This is the same information that I can get from documentation. But I want a detailed explanation
Robin
A: 

Well adapter in android are basically bridge between UI components and the datasource that fill data into UI Component.

Like Lists (UI Component) gets populated by using list adapter , from a datasource array.

success_anil
This is the same information that I can get from documentation. But I want a detailed explanation
Robin
A: 

Robin,

Have you seen this Google I/O presentation given by Romain Guy: http://developer.android.com/videos/index.html#v=N6YdwzAvwOA? If you haven't, I highly suggest watching it (at least the first 10 minutes if not the whole thing) and see if you still have questions after that. It is an excellent overview of why adapters exist and how best to use them.

John