如何在android os 4.0中构建默认的浏览器应用程序 [英] How to build the default browser application in android Os 4.0

查看:193
本文介绍了如何在android os 4.0中构建默认的浏览器应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从此处下载了Android的默认浏览器应用程序的源代码

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;

和其他类似的。我在android.provider的包的文档中搜索它,没有提到这样的课。
寻找帮助

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源代码,并至少完成一个完整的Android版本。而且我并不确定结果的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.

这篇关于如何在android os 4.0中构建默认的浏览器应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆