Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.bisacoding.testworkshop;
- import android.app.Activity;
- import android.app.ProgressDialog;
- import android.os.Bundle;
- import android.widget.Button;
- import android.widget.EditText;
- /**
- * Created by KHADAFI on 6/4/2016.
- */
- public class LoginActivity extends Activity {
- EditText txt_username;
- EditText txt_password;
- Button btn_login;
- @Override
- protected void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- setContentView(R.layout.loginlayout);
- txt_username = (EditText) findViewById(R.id.txt_username);
- txt_password = (EditText) findViewById(R.id.txt_pwd);
- btn_login = (Button) findViewById(R.id.btn_login);
- }
- public void login() {
- final ProgressDialog progressDialog = new ProgressDialog(LoginActivity.this);
- progressDialog.setIndeterminate(true);
- progressDialog.setMessage("Authenticating...");
- progressDialog.show();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement