Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.syroid.sync;
- import android.app.Activity;
- import android.os.Bundle;
- import android.view.View;
- import android.widget.Button;
- import android.widget.EditText;
- import android.widget.TextView;
- public class Syroid extends Activity {
- Button myButton;
- TextView myLabel;
- EditText myText;
- /** Called when the activity is first created. */
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.main);
- myButton = (Button)findViewById(R.id.button01);
- myLabel = (TextView)findViewById(R.id.textView1);
- myText = (EditText)findViewById(R.id.editText1);
- myButton.setOnClickListener(new View.OnClickListener() {
- public void onClick(View v) {
- myLabel.setText(myLabel.getText().toString());
- }
- });
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement