Android显示警报

时间:2015-10-16 07:22:50

标签: android alert

  @Override
public void run() {
AlertDialog.Builder ab = new AlertDialog.Builder(DashboardActivity.this);
ab.setMessage("invalid deal id or does not belong to the same organization").
setNegativeButton("OK", dialogClickListener).show();
   }

当我点击确定警报时不会解雇; 试着 ab.dismiss() ab.cancel()

任何帮助?

2 个答案:

答案 0 :(得分:0)

<ul>
   <li ng-repeat="user in users | customFilter: 15"> 
      {{ user }}
   </li>
</ul>

答案 1 :(得分:-1)

String sql = "select u from User u where UPPER(u.role) like (:role)";
List<User>  u = em.createQuery(sql, User.class)
         .setParameter("role", "journalist")
         .getResultList();

这有效:)