Added dialog and view arguments to the callback interface methods to avoid conflict to similar name methods.
Added adapter sample.