If you think the Android project Go2-Rennes listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
/*******************************************************************************
* Copyright (c) 2011 Michel DAVID mimah35-at-gmail.com
* /*www.java2s.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;
publicclass CreditsActivity extends Activity {
@Override
publicvoid 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"));
}
publicvoid mail(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("mailto:go2rennes@gmail.com")));
}
publicvoid twitter(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://twitter.com/go2rennes")));
}
publicvoid facebook(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://www.facebook.com/pages/Go2-Rennes/194513130565631")));
}
publicvoid julien(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://jltweb.info/realisations/")));
}
publicvoid showLabel(View view) {
startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse("http://data.keolis-rennes.com/fr/le-projet/labellisation.html")));
}
}