Hey,
I am playing about with obtaining search results from the Twitter Search API using the Twitter4J library.
I have got a simple search working in Eclispe using a standard java class and the results have been printed sucessfully in the console within Eclipse.
However, it does not work when I integrate it into android and try it out on the emulator. Am using AVD 1.5 and same thing happens on 2.1
The line of code it throws an exception for is:
I was thinking it might be something to do with the emulator not being able to access the Internet to perform the search. (Although I am able to manually use the browser within the emulator to access the internet.)
As I said, my code works using a standard Java class in Eclipse, but not when I try to put in into an android app and test on the emulator.
Any suggestions?
Many thanks for any help.
I am playing about with obtaining search results from the Twitter Search API using the Twitter4J library.
I have got a simple search working in Eclispe using a standard java class and the results have been printed sucessfully in the console within Eclipse.
However, it does not work when I integrate it into android and try it out on the emulator. Am using AVD 1.5 and same thing happens on 2.1
The line of code it throws an exception for is:
Code:
QueryResult queryresult = twitter.search(query);
I was thinking it might be something to do with the emulator not being able to access the Internet to perform the search. (Although I am able to manually use the browser within the emulator to access the internet.)
As I said, my code works using a standard Java class in Eclipse, but not when I try to put in into an android app and test on the emulator.
Any suggestions?
Many thanks for any help.