Broken web search
Context
#22 implemented web search on query button. It is now broken by the fact that google changed the query URL for query.
Step to reproduce: type a search and enter the query button. It will launch the browser with empty google page. On v0.6
Problem or Idea
We should have a correct websearch. The implemented solution should take into account that URL API can change and be robust about that.
Solution or Next step
There is an Android websearch intent that should be more robust:
Intent intent = new Intent(Intent.ACTION_WEB_SEARCH);
intent.putExtra(SearchManager.QUERY, query); // query contains search string
startActivity(intent);
put it in
try { ... } catch (ActivityNotFoundException e) { }
https://stackoverflow.com/questions/4800575/start-google-search-query-from-activity-android
http://developer.android.com/reference/android/content/Intent.html#ACTION_WEB_SEARCH