android crosswalk goback

MainActivity.java @Override public boolean dispatchKeyEvent(KeyEvent event) { if(event.getKeyCode() == KeyEvent.KEYCODE_BACK && event.getAction() != KeyEvent.ACTION_UP) { //按下有用,key up 無用 if (mXWalkView != null && mXWalkView.getNavigationHistory().canGoBack()) { mXWalkView.getNavigationHistory().navigate(XWalkNavigationHistory.Direction.BACKWARD, 1); return true; } } return false; }

2016-05-01 · 1 min · 34 words · Me

[轉]为什么放弃WebView crosswalk

http://www.cnblogs.com/ct2011/p/4100132.html

2016-05-01 · 1 min · word · Me

android remove title bar

false true

2016-05-01 · 1 min · 2 words · Me

android crosswalk new for file upload、camera test

1、build.gradle repositories { maven { url ‘https://download.01.org/crosswalk/releases/crosswalk/android/maven2' } } compile ‘org.xwalk:xwalk_core_library:18.48.477.13’ 2、active_main.xml <org.xwalk.core.XWalkView android:id="@+id/activity_main" xmlns:android=“http://schemas.android.com/apk/res/android" android:layout_width=“fill_parent” android:layout_height=“fill_parent”> </org.xwalk.core.XWalkView> 3、MainActivity.java mXWalkView = (XWalkView) findViewById(R.id.activity_main); mXWalkView.load(“https://blueimp.github.io/jQuery-File-Upload/", null); @Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { mXWalkView.onActivityResult(requestCode, resultCode, data); } 4、AndroidManifest.xml android:hardwareAccelerated=“true”

2016-04-30 · 1 min · 41 words · Me

web app javascript hyper app basic

基本上 codova phonegap都是用webview裡面的addJavascriptInterfac 指定@JavascriptInterface 的java method,間接呼叫 回傳資料,達到和原生溝通 codova phone 等等都是包好,讓使用者方便使用,而且共同開發,讓呼叫 回傳 android 多版本能正常 ionic、titanic、react native 等等 為了在web app上速度更快或是對應呼叫 回傳時,開發速度更快

2016-04-28 · 1 min · 19 words · Me