如何建立默认浏览器应用程序的Andr​​oid OS 4.0应用程序、浏览器、Andr、OS

2023-09-04 11:30:50 作者:世界很宽,孤独很满

我下载从这里了Android的默认浏览器应用程序的源$ C ​​$ C

和尝试它建立在Eclipse。它被示出在不同classes.Main误差各种编译错误是由于在进口,因为它不是能够挑选以下类

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;

和同样others.I搜查android.provider的Andr​​oid和没有这样的类被提及的包的文档。 寻找帮助

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

推荐答案

默认浏览器是不是SDK的应用程序。它不与SDK开发的,但整个Android项目之内。因此,它已经访问到未在SDK露出的内部类

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.

所以你不能建立它作为一个普通的应用程序。你将不得不沿着整个Android项目,这意味着下载所有Android源$ C ​​$ C构建它,至少做一个完整的Andr​​oid版本。而且我不知道所产生的APK能正常的设备上安装。

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.