/*
* Andoku - a sudoku puzzle game for Android.
* Copyright (C) 2009, 2010 Markus Wiederkehr
*
* This file is part of Andoku.
*
* Andoku is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Andoku is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Andoku. If not, see <http://www.gnu.org/licenses/>.
*/
package com.googlecode.andoku;
import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.webkit.WebView;
public class AboutActivity extends Activity {
private static final String TAG = AboutActivity.class.getName();
@Override
protected void onCreate(Bundle savedInstanceState) {
if (Constants.LOG_V)
Log.v(TAG, "onCreate(" + savedInstanceState + ")");
Util.setFullscreenMode(this);
super.onCreate(savedInstanceState);
setContentView(R.layout.about);
View backButton = findViewById(R.id.backButton);
backButton.setOnClickListener(new OnClickListener() {
public void onClick(View v) {
finish();
}
});
WebView aboutWebView = (WebView) findViewById(R.id.aboutWebView);
aboutWebView.loadUrl("file:///android_asset/"
+ getResources().getString(R.string.html_page_about));
aboutWebView.setBackgroundColor(0);
}
}
|