i cannot able to see whether the application is succesfully logged in or not
<pre><code>@Override
 public void onCreate(Bundle savedInstanceState) {
     super.onCreate(savedInstanceState);
     setContentView(R.layout.main);


     txtUserName=(EditText)this.findViewById(R.id.txtUname);
     txtPassword=(EditText)this.findViewById(R.id.txtPwd);
     btnLogin=(Button)this.findViewById(R.id.btnLogin);

           Button  btnLogin=(Button)this.findViewById(R.id.Button01);
         btnLogin.setOnClickListener(new OnClickListener() {

             @Override
             public void onClick(View v) {
                 if((txtUserName.getText().toString()).equals(txtPassword.getText().toString())){
                       Toast.makeText(LoginappActivity.this, "Login Successful",Toast.LENGTH_LONG).show();
                 } 
                 else
                 {
                       Toast.makeText(LoginappActivity.this, "Invalid Login",Toast.LENGTH_LONG).show(); 
                 }
               }
             }
         );

           Button next = (Button) findViewById(R.id.Button01);
           next.setOnClickListener(new View.OnClickListener() {   

                public void onClick(View view) {
                Intent myIntent = new Intent(view.getContext(), AddName.class);
                startActivityForResult(myIntent, 0); 
            }});    
       }    
 }
</code></pre>

<p>When the app was run in the emulator, it compiled successfully but I do not get to know whether there was a successful login or an invalid login.</p>
