• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Problem with Twitter Search Query in Android Emulator

adamj2

Lurker
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:

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.
 
Back
Top Bottom