Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 249
Ata Iravani Avatar asked Jan 26 '13 08:01

Ata Iravani


People also ask

Which control can be used to embed Web pages directly into an app in Android?

As the other answers say, WebView is the solution.

What is Android embedded browser?

Android System WebView is a system component that lets Android apps display web content inside them without opening a dedicated browser. In other words, Android System WebView is a web browser engine or an embedded web browser dedicated solely for apps to show web content.

What is alternative of WebView in Android?

Alternatives to WebView If you want to send users to a mobile site, build a progressive web app (PWA). If you want to display third-party web content, send an intent to installed web browsers. If you want to avoid leaving your app to open the browser, or if you want to customize the browser's UI, use Custom Tabs.


1 Answers

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.

like image 148
Audrius Meškauskas Avatar answered Sep 28 '22 01:09

Audrius Meškauskas