简体   繁体   中英

Head First Android Development - RSS Feed

I'm trying to learn Android and I downloaded a book named "Head First Android Development".

At some page I need to do a RSS Feed App using SAX.

This is my IotdHandler.java file: https://code.google.com/p/headfirstandroid/source/browse/trunk/HFA_Chapter_6/src/com/headfirstlabs/ch06/nasa/iotd/IotdHandler.java?r=6

And I get an error saying "can't resolve symbol "IotdHandlerListener" ".

Any idea why?

There must be a listener class/interface defined as IotdHandlerListener.

Couldn't see that in imports. The IotdHandler cannot identify it from where it is declared.

Either you need to define/code it or import it, if already exists.

In using Eclipse, press Ctrl + Shift + O to automatically arrange your imports.

Here's the code for IotdHandlerListener:

/**
 * IotdHandlerListener
 * 
 *  @author Geroen Joris - http://www.headfirstandroid.com/
 * 
 */

public interface IotdHandlerListener {

        public void iotdParsed(String url, String title, String description, String date);

}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM