Are there any ways to embed a browser in Android app?

Ata Iravani picture Ata Iravani · Jan 26, 2013 · Viewed 18.9k times · Source

I'm working on a project that needs to manage requests(html/javascript) and many more other things. I Used Chromiumembedded for windows. Now I need something like that for android.

I've searched about android programming and spent some time on Phonegap. As I know it opens a webview and have some javascript API for some device features like camera. So Phonegap is not going to help me.

I wonder if there is any way to embed Chrome or any other browser that can be embedded in an android app?

Answer

Audrius Meskauskas picture Audrius Meskauskas · Jan 26, 2013

Android has a WebView component that is basically a browser. You can place it anywhere in your application and you can enable JavaScript that is disabled by default. Supports HTML 5. I use it in production and fully recommend.

Unfortunately the 3.x versions have a bug not supporting string query that may be present inside URLs of some pages. In the bug website this issue shows as closed and fixed. I was even not aware about it as we use 4.1.0 for everything. The bug is already fixed with that release. For earlier versions, some workarounds are available here.