Simple and reorganized version of http://www.w3.org/2014/07/mobile-web-app-state/
Community
- System Applications Working Group http://www.w3.org/2012/05/sysapps-wg-charter.html
- Device APIs Working Group
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
| public class CountingFileRequestBody extends RequestBody { | |
| private static final int SEGMENT_SIZE = 2048; // okio.Segment.SIZE | |
| private final File file; | |
| private final ProgressListener listener; | |
| private final String contentType; | |
| public CountingFileRequestBody(File file, String contentType, ProgressListener listener) { | |
| this.file = file; |
Simple and reorganized version of http://www.w3.org/2014/07/mobile-web-app-state/
Community
- System Applications Working Group http://www.w3.org/2012/05/sysapps-wg-charter.html
| <div class="container"> | |
| <ul id="tabs" class="nav nav-tabs" data-tabs="tabs"> | |
| <li <?php echo (empty($tab)) ? ' class = "active tab-pane"' : ''; ?>><a href="#events" data-toggle="tab">活動列表</a></li> | |
| <?php | |
| if($this->cmrdb_auth->logged_in()) { | |
| $new_event = '<li '; | |
| $new_event .= ($tab == 'create') ? ' class = "active tab-pane"' : ''; | |
| $new_event .= '><a href="#creat_event" data-toggle="tab">新增活動</a></li>'; | |
| echo $new_event; |
| package com.example.listwidgetexample2; | |
| import java.util.concurrent.ExecutionException; | |
| import java.util.concurrent.ExecutorService; | |
| import java.util.concurrent.Executors; | |
| import java.util.concurrent.Future; | |
| import android.app.Activity; | |
| import android.appwidget.AppWidgetManager; | |
| import android.content.Context; | |
| import android.content.Intent; |
| public class MainActivity extends Activity { | |
| private WebView mWebView; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| mWebView = (WebView) findViewById(R.id.webView); |