smooth(); // font = loadFont("Sansa-Normal-48.vlw"); font = createFont("Aaux ProBlack", 60);
font2 = createFont("Aaux ProLight", 60);
// font = loadFont("AutoThree-Regular-48.vlw");
// font2 = loadFont("TrebuchetMS-Italic-22.vlw");
if (connected) { Twitter twitter = new Twitter(); for (int party = 0; party < 3; party++) { try { Query query = new Query(searchTerms[party]); QueryResult result = (QueryResult) twitter.search(query);
And it works pretty well. At first I used just the searchword "Denk" (which means "Think" in dutch), and then I started specifying my search results, for example, I wanted only dutch tweets with the word denk. This was also succesfull by adding: "lang:nl" to the search-line. Then I wanted to specify a location to look for tweets, which I should be able to do by adding:
near:\"den haag\" within:15mi. And this is where all goes wrong, cause once I added this location to my search, I got a NullPointerException. I tried increasing the range from 15mi to 1500mi, just to see if it would get any results at all, but I still got a NullPointerException.
This is the specific line that I'm struggling with:
smooth(); // font = loadFont("Sansa-Normal-48.vlw"); font = createFont("Aaux ProBlack", 60);
font2 = createFont("Aaux ProLight", 60);
// font = loadFont("AutoThree-Regular-48.vlw");
// font2 = loadFont("TrebuchetMS-Italic-22.vlw");
if (connected) { Twitter twitter = new Twitter(); for (int party = 0; party < 3; party++) { try { Query query = new Query(searchTerms[party]); QueryResult result = (QueryResult) twitter.search(query);
And it works pretty well. At first I used just the searchword "Denk" (which means "Think" in dutch), and then I started specifying my search results, for example, I wanted only dutch tweets with the word denk. This was also succesfull by adding: "lang:nl" to the search-line. Then I wanted to specify a location to look for tweets, which I should be able to do by adding:
near:\"den haag\" within:15mi. And this is where all goes wrong, cause once I added this location to my search, I got a NullPointerException. I tried increasing the range from 15mi to 1500mi, just to see if it would get any results at all, but I still got a NullPointerException.
This is the specific line that I'm struggling with: