obenjiro
obenjiro

Reputation: 3750

Android, is there a way to display two browsers (or better to say two WebViews) at the same time?

The question is preatty simple. Is there a way to display two separate web browsers\webViews (that point to the two diffrent web pages) at the same time. I want to build an app that show Google search and Bing search at the same page of an app.

I'm asking this becose i was told by my frend (he is an Androind developer) that there is NO WAY to do it?

Is it true? or there is some way to do it?

PS: NO IFRAMES PLZ!! I know i can do iframe, but in my case i want it to be two seaparete browsers.

UPDATE

I just want to know is it possible or not. I don't ask you to do my "homework"

Upvotes: 0

Views: 297

Answers (1)

nhaarman
nhaarman

Reputation: 100398

Just create a layout with two WebViews beneath eachother, and assign them different id's. Not tested it, but should be logical.

Also, why does your friend think it's impossible?

edit

As per your comment: only if you do it the second way you can have maximum one WebView per Activity, I can't find a reason why it should restrict when adding them in a layout.

Upvotes: 1

Related Questions