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.
5 package org.xwalk.core.sample;
7 import org.xwalk.core.XWalkView;
9 import android.app.Activity;
10 import android.os.Bundle;
12 public class LoadAppFromManifestActivity extends Activity {
15 protected void onCreate(Bundle savedInstanceState) {
16 super.onCreate(savedInstanceState);
17 setContentView(R.layout.xwview_layout);
18 XWalkView xwalkView = (XWalkView) findViewById(R.id.xwalkview);
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);