1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
| package com.example.test;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class AboutActivity extends Activity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_about);
final Button anleitungButton = (Button) findViewById(R.id.anleitung);
anleitungButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(AboutActivity.this, AnleitungActivity.class);
startActivity(intent);
}
});
final Button loginButton = (Button) findViewById(R.id.contact);
loginButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(AboutActivity.this, ContactActivity.class);
startActivity(intent);
}
});
final Button homeButton = (Button) findViewById(R.id.home);
homeButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent intent = new Intent(AboutActivity.this, MainActivity.class);
startActivity(intent);
}
});
final Button backButton = (Button) findViewById(R.id.back);
backButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v){
AboutActivity.this.finish();
}
});
final Button aboutButton = (Button) findViewById(R.id.person);
aboutButton.setOnClickListener(new View.OnClickListener() {
public void onClick(View v) {
Intent intent = new Intent(AboutActivity.this, DatasActivity.class);
startActivity(intent);
}
});
final Button homepageButton = (Button) findViewById(R.id.homepage);
homepageButton.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
String url = "https://www.azerty.com";
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(url));
startActivity(intent);
}
});
}} |