Hey i want to use alert dialog in services, but i'm not getting the
dialog,

public void myEventOccurred(Event evt) {
        // TODO Auto-generated method stub
        System.out.print(">>>>><<<<<< Event fired...");
        new AlertDialog.Builder( this )
    .setTitle( R.string.SaveConnectionChangeWarningTitle )
    .setMessage( "Alert !" )
    .setPositiveButton( android.R.string.ok,
          new DialogInterface.OnClickListener()
          {
             public void onClick( DialogInterface dialog, int
whichButton)
             {
                dialog.dismiss();
             }
          })
    .show();
}

is i'm doing wrong, (this alert dialog code is working in activity).

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

Reply via email to