/*******************************************************************************
* Copyright (c) 2011 Michel DAVID mimah35-at-gmail.com
*
* This program 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.
*
* This program 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 this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
package fr.gotorennes;
import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
public class CreditsActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.credits);
SharedPreferences prefs = getSharedPreferences("fr.gotorennes.Application", 0);
((TextView) findViewById(R.id.version)).setText(prefs.getString("gtfs", "unknown"));
}
public void mail(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mailto:go2rennes@gmail.com")));
}
public void twitter(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://twitter.com/go2rennes")));
}
public void facebook(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/pages/Go2-Rennes/194513130565631")));
}
public void julien(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://jltweb.info/realisations/")));
}
public void showLabel(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://data.keolis-rennes.com/fr/le-projet/labellisation.html")));
}
}