How to create default browser application in android Os 4.0

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

and tried to build from an eclipse. It shows various build errors in different classes. The main error is related to import, because it cannot select the following classes.

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

and similar to others. I searched for it in the documentation for the android.provider android package and no such class is mentioned. Help Search

+7
source share
2 answers

The default browser is not an "SDK" application. It is not developed with the SDK, but as part of the entire Android project. Therefore, it has access to an inner class that does not appear in the SDK.

Therefore, you cannot create it as a regular application. You will have to build it throughout the Android project, which means downloading all of the Android source code and creating at least one complete Android build. And I'm not sure if the resulting apk can be installed normally on the device.

+8
source

I tried the steps given at this link http://devmaze.wordpress.com/2011/01/18/using-com-android-internal-part-1-introduction/ and now it works fine ...

+1
source

All Articles