Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Button information = (Button) findViewById(R.id.information);
- information.setOnClickListener(new View.OnClickListener() {
- @Override
- public void onClick(View v) {
- Context context = getApplicationContext();
- CharSequence text = "Grundlagen Java-Programmierung, Grundlagen Android-Anwendung(5SWS)";
- int duration = Toast.LENGTH_SHORT;
- Toast toast = Toast.makeText(context, text, duration);
- toast.show();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement