I'm trying to read the twitter public stream, I have used the twitter4j Java Library to do this.
The examples given in Sample Codes section "Streaming API" show that it should be coded like below
StatusListener listener = new MyStatusListener();
TwitterStream twitterStream = new TwitterStreamFactory(listener).getInstance();
Here the MyStatusListener implements the StatusListener interface. But I get error when creating the TwitterStreamFactory object (Cannot Resolve Constructor TwitterStreamFactory(twitter4j.Listener)), Have anyone come across this problem. Please comment any ideas