Re: [android-developers] Re: Modal Dialogs: the definitive solution

2010-02-12 Thread kamran Manzoor
///
Salam to All
I am trying to built the login screen, during this process i have a problem
that
package com.net.login;

import android.app.Activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class login extends Activity {
/** Called when the activity is first created. */
 String username , password;
Button login;
TextView tv = new TextView(this);
EditText name = new EditText(this);
EditText pass =new EditText(this);
 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//

//
name = (EditText)findViewById(R.id.user_name);
pass = (EditText)findViewById(R.id.password);
login = (Button)this.findViewById(R.id.login);

username = name.getText().toString();
password = pass.getText().toString();
login.setOnClickListener((android.view.View.OnClickListener)
loginListener);
}
private OnClickListener loginListener = new OnClickListener()
{
public void onClick(View v)
{
 if (username == kami  password == kami)
 {
  //TextView tv = new TextView(this);
tv.setText( Login is Proved);
setContentView(tv);

  //System.out.println(login proved);
 }
 else
 {
//  TextView tv = new TextView(this);
tv.setText( Passwod is incorrect );
setContentView(tv);

 }
  //System.out.println(login proved);
}
  @Override
  public void onClick(DialogInterface dialog, int which) {
   // TODO Auto-generated method stub

  }

};

}
///

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: Modal Dialogs: the definitive solution

2010-02-12 Thread kamran Manzoor
On 2/13/10, kamran Manzoor kamranmanzoor...@gmail.com wrote:

 ///
 Salam to All
 I am trying to built the login screen, during this process i have a problem
 that
 package com.net.login;

 import android.app.Activity;
 import android.content.DialogInterface;
 import android.content.DialogInterface.OnClickListener;
 import android.os.Bundle;
 import android.view.View;
 import android.widget.Button;
 import android.widget.EditText;
 import android.widget.TextView;

 public class login extends Activity {
 /** Called when the activity is first created. */
  String username , password;
 Button login;
 TextView tv = new TextView(this);
 EditText name = new EditText(this);
 EditText pass =new EditText(this);
  @Override
 public void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.main);
 //

 //
 name = (EditText)findViewById(R.id.user_name);
 pass = (EditText)findViewById(R.id.password);
 login = (Button)this.findViewById(R.id.login);
 
 username = name.getText().toString();
 password = pass.getText().toString();
 login.setOnClickListener((android.view.View.OnClickListener)
 loginListener);
 }
 private OnClickListener loginListener = new OnClickListener()
 {
 public void onClick(View v)
 {
  if (username == kami  password == kami)
  {
   //TextView tv = new TextView(this);
 tv.setText( Login is Proved);
 setContentView(tv);

   //System.out.println(login proved);
  }
  else
  {
 //  TextView tv = new TextView(this);
 tv.setText( Passwod is incorrect );
 setContentView(tv);

  }
   //System.out.println(login proved);
 }
   @Override
   public void onClick(DialogInterface dialog, int which) {
// TODO Auto-generated method stub

   }

 };

 }
 ///


emulator is stopped  forcely

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] help me

2010-02-12 Thread kamran Manzoor
the code is here with emulator problrm
package com.net.login;

import android.app.Activity;
import android.content.DialogInterface.OnClickListener;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

public class login extends Activity {
/** Called when the activity is first created. */
 String username , password;
Button login;
TextView tv = new TextView(this);
EditText name = new EditText(this);
EditText pass =new EditText(this);
 @Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
//

//
name = (EditText)findViewById(R.id.user_name);
pass = (EditText)findViewById(R.id.password);
login = (Button)this.findViewById(R.id.login);

username = name.getText().toString();
password = pass.getText().toString();
login.setOnClickListener((android.view.View.OnClickListener)
loginListener);
}
private OnClickListener loginListener = new OnClickListener()
{
public void onClick(View v)
{
 if (username == kami  password == kami)
 {
  //TextView tv = new TextView(this);
tv.setText( Login is Proved);
setContentView(tv);

  //System.out.println(login proved);
 }
 else
 {
//  TextView tv = new TextView(this);
tv.setText( Passwod is incorrect );
setContentView(tv);

 }
  //System.out.println(login proved);
}

};

}
plz help me if anyone know?

thanx
kamran Manzoor
FAST-NU

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Re: multiple buttons + dialog box

2010-02-10 Thread kamran Manzoor
Salam
I am trying to used the android emulator services except maps please tell me
if any one know


Thanx
kamran Manzoor
Student of FAST_NU

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Full Android Example using Twitter OAuth with Signpost

2010-01-03 Thread kamran Manzoor
Salam

I have a problem with my emulator it works fine in my hostel where no proxy
setting needed
But the problem is that' emulator not working in my University where setting
the proxy..

If any one knows this plz reply me as Soon as Possible

Thanks.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en