/* * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Tobias Fleig (tobifleig gmail com) * * All rights reserved. * * This file is part of LanXchange. * * LanXchange 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. * * LanXchange 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 LanXchange. If not, see <http://www.gnu.org/licenses/>. */ package de.tobifleig.lxc.plaf.android.activity; import android.content.Intent; import android.net.Uri; import android.os.Bundle; import android.view.View; import android.view.View.OnClickListener; import de.tobifleig.lxc.R; public class PCVersionActivity extends KeepServiceRunningActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); // load layout setContentView(R.layout.activity_pcversion); getSupportActionBar().setDisplayHomeAsUpEnabled(true); // handle input findViewById(R.id.pcversion_centerbox).setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(getResources().getString(R.string.pcversion_url)))); } }); } }