Chinaunix首页 | 论坛 | 博客
  • 博客访问: 12376765
  • 博文数量: 1293
  • 博客积分: 13501
  • 博客等级: 上将
  • 技术积分: 17974
  • 用 户 组: 普通用户
  • 注册时间: 2011-03-08 18:11
文章分类

全部博文(1293)

文章存档

2019年(1)

2018年(1)

2016年(118)

2015年(257)

2014年(128)

2013年(222)

2012年(229)

2011年(337)

分类: Java

2014-12-22 15:15:51


  1. import android.app.AlertDialog;
  2. import android.content.DialogInterface;

  3. private void showMessage(String string)
  4.      {
  5.             new AlertDialog.Builder(mContext)
  6.                     .setTitle("提示")
  7.                     .setMessage(string)
  8.                     .setNegativeButton("确定",
  9.                             new DialogInterface.OnClickListener()
  10.                             {
  11.                                 public void onClick(DialogInterface dialoginterface, int i)
  12.                                 {
  13.                                     // Do something you want!!!
  14.                                 }
  15.                             }).show();
  16.      }

来自博客:
阅读(3263) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~