Upstream version 6.35.131.0
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / sample / src / org / xwalk / core / sample / LoadAppFromManifestActivity.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.app.Activity;
10 import android.os.Bundle;
11
12 public class LoadAppFromManifestActivity extends Activity {
13
14     @Override
15     protected void onCreate(Bundle savedInstanceState) {
16         super.onCreate(savedInstanceState);
17         setContentView(R.layout.xwview_layout);
18         XWalkView xwalkView = (XWalkView) findViewById(R.id.xwalkview);
19
20         // The manifest definition, please refer to the link:
21         // https://crosswalk-project.org/#wiki/Crosswalk-manifest 
22         xwalkView.loadAppFromManifest("file:///android_asset/manifest.json", null);
23     }
24 }