1

android java get google pagerank

view story
linux-howto

http://stackoverflow.com – I'm trying to get google pagerank on android with ADT with following code but it gives an NetworkOnMainThreadException on BufferedReader line. String url = "http://toolbarqueries.google.com/tbr?client=navclient-auto&hl=en&" + "ch=6" + hash + "&ie=UTF-8&oe=UTF-8&features=Rank&q=info:" + domain; URLConnection conn = new URL(url).openConnection(); BufferedReader br = new BufferedReader(new InputStreamReader(conn.getInputStream())); String input; while ((input = br.readLine()) != null) { result = input.substring(input.lastIndexOf(":") + 1); } By the way I tr (HowTos)