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

[轉]Android WebView 与 JavaScript 交互 AND Java

https://codemumbai.wordpress.com/android-webview-image-upload-solved/ http://maurizionapoleoni.de/blog/implementing-a-file-input-with-camera-support-in-android-with-crosswalk/ ===== https://mthli.github.io/Android-WebView-JavaScript http://stackoverflow.com/questions/11544992/taking-a-picture-from-the-camera-fails-20-of-the-time http://bluereader.org/article/165908253 http://www.mobile-open.com/2015/65366.html http://www.flapjacksandcode.com/blog/2015/2/17/android-webviews-getusermedia-putting-it-all-together http://lookintoandroid.blogspot.tw/2015/11/getting-camera-captured-image-in.html ===== upload file http://www.unknownerror.org/opensource/brandonsavage/Upload/q/stackoverflow/5907369/file-upload-in-webview ===== 用CrossWalk包的話,可以肯定是最新的chrome,保證在操作上的正常!但app會非常的肥大~~ 再不然就不能事先說明android 5以上才能存取 camera, file upload

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

[轉]免费空间+便宜VPS和OpenResty,Ngx_lua,Redis搭建系统负载均衡环境

http://www.freehao123.com/vps-openresty-ngx_lua/ 免费空间+便宜VPS+OpenResty +Ngx_lua +Redis高效系统负载平衡环境,经过测试,15美金的服务器能支持每天2-3万IP的访问量 免费空间、nginx、ngx_lua、Redis

2016-04-27 · 1 min · 5 words · Me