How to modify source android when I attach the source
I want to change some functionality in the WebView control, is there any way to cha开发者_JAVA技巧nge the source of the sdk. knowing that I got the source code android.jar and I attach it to eclipse for debugging but I can't edit it.
What about extending WebView via inheretance and implementing functionality in subclass? Editing android sources is unlikely a best practices :)
is there any way to change the source of the sdk.
There is no "source of the sdk".
The source code is called an "operating system". It runs as firmware on a device. You can change this code and create replacement firmware which you can load on a device.
Take a look at the git-hub phonegap source files - https://github.com/phonegap/phonegap-android
You can download the source, edit them however you like and then make a jar file.
精彩评论