[android-developers] Re: How to cancle a dialog when touch it?

2009-05-23 Thread arnouf

User AlertDialogBuilder to add your buttons...It's simplier

On May 23, 4:47 am, hencechen...@gmail.com hencechen...@gmail.com
wrote:
 i have my code
                         Dialog dlg=new Dialog(android01.this);
                         dlg.setContentView(R.layout.error);
                         dlg.show();
                         MotionEvent event = null;
                                 if(dlg.onTouchEvent(event))
                                 dlg.cancel();
 but it dosnt work?
 how to fix it?
 Thank you.
 Hence
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~--~~~~--~~--~--~---



[android-developers] Re: How to cancle a dialog when touch it?

2009-05-23 Thread chen hence
i found the problem...its function add();
Thank you for your help.

2009/5/23 arnouf arnaud.far...@gmail.com


 User AlertDialogBuilder to add your buttons...It's simplier

 On May 23, 4:47 am, hencechen...@gmail.com hencechen...@gmail.com
 wrote:
  i have my code
  Dialog dlg=new Dialog(android01.this);
  dlg.setContentView(R.layout.error);
  dlg.show();
  MotionEvent event = null;
  if(dlg.onTouchEvent(event))
  dlg.cancel();
  but it dosnt work?
  how to fix it?
  Thank you.
  Hence
 


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