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.XWalkPreferences;
8 import org.xwalk.core.XWalkView;
10 import android.app.Activity;
11 import android.os.Bundle;
13 public class XWalkPreferencesActivity extends Activity {
16 protected void onCreate(Bundle savedInstanceState) {
17 super.onCreate(savedInstanceState);
18 setContentView(R.layout.xwview_layout);
19 XWalkView xwalkView = (XWalkView) findViewById(R.id.xwalkview);
21 // Enable remote debugging.
22 // You can debug the web content via PC chrome.
23 XWalkPreferences.setValue(XWalkPreferences.REMOTE_DEBUGGING, true);
25 xwalkView.load("http://www.baidu.com/", null);