Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 73: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 74: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 75: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 76: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 77: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /bbc_download.php on line 78: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
public class RouteSample extends Activity { TextView tv; /** Called when the activity is first created. */ @Override public void onCreate(Bundle icicle) { super.onCreate(icicle); tv = new TextView(this); tv.setText("Please wait a moment..."); setContentView(tv); new Thread(new Runnable(){ @Override public void run() { try { /* This line is all you need =) */ Route r = RouteFactory.create(Nationality.USA, "37.544694,-122.360356", // From: "San Francisco" "40.706384,-74.012672", // To: "New York - Broadway" "39.745684,-104.998457"); // Via: "Denver" /* Lets read out some values... */ StringBuilder sb = new StringBuilder(); sb.append("Total Distance (meters): ").append(r.getDistanceMeters()).append("\n"); sb.append("Total Time (seconds): ").append(r.getDurationSeconds()).append("\n\n"); sb.append("First subroute: Locationname: "); sb.append(r.getSubRoutes()[0].getEnd().getAdvancedAddress().getLocality()).append("\n"); sb.append("Lenght of first subroute (meters): ").append(r.getSubRoutes()[0].getLengthMeters()).append("\n"); sb.append("Overall Points in Polyline: ").append(r.getPolyLine().length); /* Show the values on the TextView. */ setTextOnUIThread(tv, sb.toString()); } catch (Exception e) { /* Oops something went wrong... */ setTextOnUIThread(tv, "Error: " + e.getMessage()); } } }).start(); } /** Simple helper function. */ private void setTextOnUIThread(final TextView t, final String s){ runOnUIThread(new Runnable(){ @Override public void run() { t.setText(s); } }); } }