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
I have tried the steps provided on this link devmaze.wordpress.com/2011/01/18/… and now it is working fine...
Thanks for your response.But in Source folder the BrowserContract class is exist but in the android.jar the class file is missing.
Ok i got your point.Actually they used the annotation hide to hide it from android.jar.So how we can customize the browser app of android.
There is no BrowserContract class in the browser code. It is part of platform_framework_base (github.com/android/platform_frameworks_base/blob/master/core/…),and is tagged hideandroid os 4.0,which means it will not be available in the SDK (and thus won't be in android.jar). What are you trying to do exactly?
I am just trying to run the default browser application.But facing the problem because of the hidden API of the SDK.Should i add all the relevant class or is their any workaround for the same
Adding relevant class does not seems feasibleandroid os 4.0, as added class will need others class. You will end up adding almost everything. The only thing i see is to remove/re-implement all the things using hidden API.
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-143475-1.html
人家10多20年的东西拿出来照样用