Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to build the default browser application in android Os 4.0

I downloaded the source code of the default Browser application of the android from here

and tried it to build from the eclipse. It is showing various build error in different classes.Main error is due to in import as it is not able to pick the following classes.

import android.provider.BrowserContract;
import android.net.WebAddress;
import android.webkit.WebSettings.AutoFillProfile;

and similarly others.I searched it in the documentation of the package of android.provider of android and no such class is mentioned. Looking for the help

like image 947
Deepak Goel Avatar asked Jan 17 '12 12:01

Deepak Goel


1 Answers

The default browser is not an "SDK" application. It is not developed with the SDK, but within the whole Android project. It has therefore access to internal class which are not exposed in the SDK.

So you can't build it as a regular app. You will have to build it along the whole Android project, which means download all the Android source code, and do at least one full Android build. And i'm not sure the resultant apk can be installed normally on a device.

like image 71
Anasthase Avatar answered Sep 19 '22 09:09

Anasthase