Thursday, April 4, 2013

Create alert dialog box android


create stylish alert dialog box android
create about us page android

Button b5;
b5=(Button)findViewById(R.id.aboutus);
b5.setOnClickListener(new OnClickListener() {

@SuppressWarnings("deprecation")
public void onClick(View v) {
// TODO Auto-generated method stub

AlertDialog alertDialog = new AlertDialog.Builder(
easyselect.this).create();

// Setting Dialog Title
alertDialog.setTitle("Europa TechnoSoft pvt. ltd");

// Setting Dialog Message
alertDialog.setMessage("Europa Technosoft was initially set up as" +
" a single product company at New Delhi, today it is a multi-product " +
"and multi-technology with its marketing network spread across the country." +
" The Company over the yearÂ’s mirrors and advances in technological innovations," +
" with which it has kept pace. The Company's efforts for business excellence" +
" has been recognized time and again by its customers & others.");

// Setting Icon to Dialog
alertDialog.setIcon(R.drawable.tick);

// Setting OK Button
alertDialog.setButton("OK", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {


}
});

// Showing Alert Message
alertDialog.show();

}
});


Download Image tick.png here

No comments:

Post a Comment