Using demos provided by android platform for practice and reference is the best way. It's simple to import there samples to Eclipse.
File ---> New Project ---> Android Project.
Dialog New Android Project appear and you should choose Create project from exist source. Browse to the location of folder example in android platform folder in your disk. After that, click Finish.