Upstream version 7.35.136.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / sample / src / org / xwalk / core / sample / OnHideOnShowActivity.java
1 // Copyright (c) 2014 Intel Corporation. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 package org.xwalk.core.sample;
6
7 import org.xwalk.core.XWalkView;
8
9 import android.os.Bundle;
10
11 public class OnHideOnShowActivity extends XWalkBaseActivity {
12
13     @Override
14     protected void onCreate(Bundle savedInstanceState) {
15         super.onCreate(savedInstanceState);
16         setContentView(R.layout.xwview_layout);
17         mXWalkView = (XWalkView) findViewById(R.id.xwalkview);
18
19         // The web page below will display a video.
20         // When home button is pressed, the activity will be in background, and the video will be paused.
21         mXWalkView.load("http://www.w3.org/2010/05/video/mediaevents.html", null);
22     }
23 }