Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. import android.app.Activity;
  2. import android.content.Intent;
  3. import android.os.Bundle;
  4. import android.view.View;
  5. import android.widget.Button;
  6. import android.widget.Toast;
  7.  
  8. public class MainActivity extends Activity {
  9. Button new_claim_button;
  10. @Override
  11. protected void onCreate(Bundle savedInstanceState) {
  12. super.onCreate(savedInstanceState);
  13. setContentView(R.layout.activity_main);
  14. new_claim_button = (Button) this.findViewById(R.id.button1);
  15. new_claim_button.setOnClickListener(new OnClickListener() {
  16.  
  17. }
  18. });
  19. }
  20. }
  21.  
  22. new_claim_button.setOnClickListener(new View.OnClickListener() {
  23. @Override
  24. public void onClick(View view) {
  25. //implementation
  26. }
  27. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement