Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2016
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. package com.bisacoding.testworkshop;
  2.  
  3. import android.app.Activity;
  4. import android.app.ProgressDialog;
  5. import android.os.Bundle;
  6. import android.widget.Button;
  7. import android.widget.EditText;
  8.  
  9. /**
  10. * Created by KHADAFI on 6/4/2016.
  11. */
  12. public class LoginActivity extends Activity {
  13.  
  14. EditText txt_username;
  15. EditText txt_password;
  16. Button btn_login;
  17.  
  18. @Override
  19. protected void onCreate(Bundle savedInstanceState) {
  20. super.onCreate(savedInstanceState);
  21. setContentView(R.layout.loginlayout);
  22.  
  23. txt_username = (EditText) findViewById(R.id.txt_username);
  24. txt_password = (EditText) findViewById(R.id.txt_pwd);
  25. btn_login = (Button) findViewById(R.id.btn_login);
  26.  
  27.  
  28.  
  29. }
  30.  
  31. public void login() {
  32. final ProgressDialog progressDialog = new ProgressDialog(LoginActivity.this);
  33. progressDialog.setIndeterminate(true);
  34. progressDialog.setMessage("Authenticating...");
  35. progressDialog.show();
  36.  
  37.  
  38. }
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement