/* txtOrigin と txtDestination の値を、一致すると仮定してクエリ変数と比較します/
if((origin.getText().toString().matches(queryOrigin))
&& (destination.getText().toString().matches(queryDestination)))
{
//proceed to route found layout
Intent openRouteFound = new Intent("com.icommute.feu.RouteFound");
startActivity(openRouteFound);
}
/**compares the values of txtOrigin
and txtDestination to the query
variables assuming it doesn't match*/
else
{
//proceed to no routes found layout
Intent openNoRoute = new Intent("com.icommute.feu.NoRoute");
startActivity(openNoRoute);
}