[android-developers] AlertDialog in Fragment

2013-02-22 Thread abhijit
Hii My Question is I am Using ViewPager for my Application in which number of fragments are there .In one Fragment i have two buttons,my objective is that by clicking each button it should show a AlertDialog here i am getting stuck because here i cant use onCreateDialog(int id) to pass Differe

Re: [android-developers] AlertDialog in Fragment

2012-08-05 Thread Marcin Orlowski
Read about activity/fragment lifecycle. You can clearly be notified when user goes away from it, so you can i.e. flag this to your other code or cancel a task etc. You may also try to block back for a while (see onBackPressed()). Regards, Marcin Orlowski *Tray Agenda * -

Re: [android-developers] AlertDialog in Fragment

2012-08-03 Thread Justin Anderson
Code? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Fri, Aug 3, 2012 at 6:08 AM, Sohan badaya wrote: > Hi I have a issue with AlertDialog in Fragment. > I click on a button in fragment that will launch AlertDialog. Button will > do some background wo

[android-developers] AlertDialog in Fragment

2012-08-03 Thread Sohan badaya
Hi I have a issue with AlertDialog in Fragment. I click on a button in fragment that will launch AlertDialog. Button will do some background work and after 2 second it will start AlertDialog. If in between before launching AlertDialog if I press back button my previous acticity is being display