Deepak Goel
Deepak Goel

Reputation: 5684

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

Upvotes: 7

Views: 4545

Answers (1)

Anasthase
Anasthase

Reputation: 491

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.

Upvotes: 8

Related Questions