[android-developers] problem with AlertDialog and power button

2012-07-23 Thread Brad Justice
I am creating an AlertDialog in my activity onResume with the following code: LayoutInflater li = LayoutInflater.from(this) ; View view = li.inflate(R.layout.welcome,null); AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setTitl

Re: [android-developers] problem with AlertDialog and power button

2012-07-23 Thread Justin Anderson
Try dismissing it in onPause() out it is visible... On Jul 23, 2012 6:48 PM, "Brad Justice" wrote: > I am creating an AlertDialog in my activity onResume with the following > code: > LayoutInflater li = LayoutInflater.from(this) ; > View view = li.inflate(R.layout.welcome

Re: [android-developers] problem with AlertDialog and power button

2012-07-23 Thread Justin Anderson
Sorry, that should have said dismiss in onPause() IF it is visible... On Jul 23, 2012 6:48 PM, "Brad Justice" wrote: > I am creating an AlertDialog in my activity onResume with the following > code: > LayoutInflater li = LayoutInflater.from(this) ; > View view = li.inflat

Re: [android-developers] problem with AlertDialog and power button

2012-07-23 Thread TreKing
On Mon, Jul 23, 2012 at 7:47 PM, Brad Justice wrote: > The dialog has an exit button. First suggestion would be to replace your layout button that calls dismiss with a standard dialog button that does this automatically. See if that helps. ---

Re: [android-developers] problem with AlertDialog and power button

2012-07-24 Thread Brad Justice
Yes, that was the problem. Your suggestion works perfectly. Thanks all for your assistance. On Monday, July 23, 2012 6:44:05 PM UTC-7, MagouyaWare wrote: > > Try dismissing it in onPause() out it is visible... > >> I am creating an AlertDialog in my activity onResume with the following >> code: