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
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
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 ;-)
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
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
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
6 matches
Mail list logo