I'm developing apps with Sencha Touch and PhoneGap, which uses a webview to wrap an HTML5 application. I have been finding though that scroll and animation performance inside my app's webview is consistently underperforming the same application loaded in the same phone's web browser.
I found a related discussion and have been experimenting with the code I found in it: http://stackoverflow.com/questions/3652583/enhance-webview-performance-should-be-the-same-performance-as-native-web-browser ...but have not found any improvements in performance. Here are two apps where you can compare PhoneGap vs Browser performance for the same code: http://mobile.phillytechweek.com vs https://market.android.com/details?id=com.phillytechweek http://draft.philadelphiaeagles.com vs https://market.android.com/details?id=com.philadelphiaeagles Is there anyone that can shed some light on the nature of this disparity or how it can be closed? Here's what I'm currently working with: ---------------------- public class MyApp extends DroidGap { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); super.setIntegerProperty("splashscreen", R.drawable.splash); super.init(); super.appView.clearCache(true); super.appView.getSettings().setCacheMode(WebSettings.LOAD_NO_CACHE); super.appView.getSettings().setRenderPriority(WebSettings.RenderPriority.HIGH); super.appView.getSettings().setSupportZoom(false); super.appView.getSettings().setSupportMultipleWindows(false); super.appView.getSettings().setBuiltInZoomControls(false); // disable caching try { Method m = CacheManager.class.getDeclaredMethod("setCacheDisabled", boolean.class); m.setAccessible(true); m.invoke(null, true); } catch (Throwable e) { Log.i("MyApp","Reflection failed", e); } super.loadUrl("file:///android_asset/www/index.html"); } } -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

