[android-developers] Re: Web search.

2013-08-05 Thread Nobu Games
Make yourself familiar with regular expressions and try to evaluate the input string for matching known URL address patterns. The problem here is, that your pattern matching must not be strict. So you also need to allow input like www.domain.com domain.com without http(s) protocol prefix

Re: [android-developers] Re: Web search.

2013-08-05 Thread N. Paudyal
Yes, I did think I may need to do something like that... I didnt know if there was an easier way of doing it. What does You can try-catch and make an URL object from the entered text - if it succeed you have a valid URL to show. mean? is this some sort of function/method to check if a given

Re: [android-developers] Re: Web search.

2013-08-05 Thread Michael Banzon
You just use the Java URL class to make a new object. If it succeeds you have a valid URL string. As mentioned there are many other situations where the user would think that they've entered a valid URL but haven't - and you should address those if you plan on getting standard users satisfied ;-)

[android-developers] Re: Web search

2008-09-04 Thread android_dev
Any plans to have business and/or local search in 1.0? On Sep 3, 2:02 pm, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/3 android_dev [EMAIL PROTECTED] How to get web search results in an application (without launching the browser)? Can the getFromLocationName(...) be used for getting

[android-developers] Re: Web search

2008-09-04 Thread Megha Joshi
2008/9/4 android_dev [EMAIL PROTECTED] Any plans to have business and/or local search in 1.0? No..these APIs will not be ready in time for 1.0 launch. On Sep 3, 2:02 pm, Megha Joshi [EMAIL PROTECTED] wrote: 2008/9/3 android_dev [EMAIL PROTECTED] How to get web search results in

[android-developers] Re: Web search

2008-09-03 Thread Megha Joshi
2008/9/3 android_dev [EMAIL PROTECTED] How to get web search results in an application (without launching the browser)? Can the getFromLocationName(...) be used for getting web search results given a search term? It can be used for location search. example: getFromLocationName(pizza