title: search EditText input online if it's not a URL
body: <p>I'm learning android coding using java language. currently, I'm working on a web browser, it has an EditText for giving the URL address but my problem is that I want it to also be a search bar for a search engine like google. so, for example, if the input doesn't end with a domain like &quot;.com&quot;, the app automatically searches the input with google or any other search engine.
  Thanks in advance!</p>