Guest User

Untitled

a guest
May 16th, 2018
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.81 KB | None | 0 0
  1. package com.full.throttle;
  2.  
  3. import android.app.Activity;
  4. import android.os.Bundle;
  5. import android.view.View;
  6. import android.widget.Button;
  7. import android.widget.TextView;
  8. import com.full.throttle.suspension.R;
  9.  
  10. public class button extends Activity {
  11.  
  12. Button myButton;
  13. TextView myLabel;
  14.  
  15. /** Called when the activity is first created. */
  16. @Override
  17. public void onCreate(Bundle savedInstanceState) {
  18. super.onCreate(savedInstanceState);
  19. setContentView(R.layout.imageupload);
  20.  
  21. myButton = (Button)findViewById(R.id.button01);
  22. myLabel = (TextView)findViewById(R.id.TextView01);
  23.  
  24. myButton.setOnClickListener(new View.OnClickListener() {
  25.  
  26.     public void onClick(View v) {
  27.         Intent uploadIntent = new Intent(this, com.full.throttle.ImageUpload.class);
  28.         startActivity(uploadIntent);
  29.         return true;
  30.  
  31. }
  32. });
  33. }
  34. }
Add Comment
Please, Sign In to add comment