search

Home  >  Q&A  >  body text

android - 想用PhoneGap来把web页面做成安卓应用,那么PhoneGap比系统自带的webview有什么优势?

想用PhoneGap来把web页面做成安卓应用,那么PhoneGap比系统自带的webview有什么优势?
对于移动开发,新手,大家多多指教。

ringa_leeringa_lee2770 days ago430

reply all(5)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 11:49:18

    The WebView (CordovaWebView) in PhoneGAP is actually an extension of the WebView that comes with Android, encapsulating and rewriting some functions.

    For detailed code, please read CordovaWebView.java

    For example, loading local pages is of course the key modification.
    If there is any improvement in performance, I feel that there is no improvement other than ease of use.

    reply
    0
  • 迷茫

    迷茫2017-04-17 11:49:18

    The answers from the people above are wrong. They are asking about the difference between phonegap’s webview and ordinary webview, not about the difference between hybrid APP and native APP.

    First of all, let’s talk nonsense: I have never experienced debugging hybrid APP in ordinary webview. It is your happiness, really. There are too many pitfalls in hybrid, but iOS is okay, especially Android, which is full of blood and tears.

    The difference between phonegap and ordinary webview is that it has fixed many webview bugs and made up for many poor performance. It will feel closer to the web during development. Moreover, it implements many APIs according to standards and is relatively convenient to use, and is good for development, debugging and transplantation.

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:49:18

    Advantages:
    If you are familiar with web front-end, phonegap will be faster to get started with. As VS2013, netbeans, etc. successively support cordova, this development process is becoming simpler and simpler. There are also cross-platform front-end frameworks such as jquery mobile, appframework, sencha touch, etc. that can also simplify the page development process.

    Disadvantages:
    Efficiency is a big problem. Slowness can be alleviated, but it cannot be solved. The effect on low-end Android phones is very unsatisfactory.

    reply
    0
  • 阿神

    阿神2017-04-17 11:49:18

    It is said that the performance is not good, but I have never actually done it. The author can give feedback after finishing it~~

    reply
    0
  • PHP中文网

    PHP中文网2017-04-17 11:49:18

    The performance is not good, unless it is a very simple news blog display, like ONE, which has one article per day, this is more suitable.

    reply
    0
  • Cancelreply