I think you mean: popup.getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
I have tried this, but it doesn't work. thanks. On Tuesday, September 4, 2012 3:18:37 PM UTC+9, MagouyaWare wrote: > > I have activity A running. I want to start my new activity B so that >> activity A is also running. Is this possible ? >> >> Normally, when activity B is started, activity A is put on hold and >> onPause is called. I don't want this to happen. But instead I want activity >> A running normally and on top activity B running. >> >> I don't have control over activity A. And activity B is only for >> displaying Alert dialogs. >> >> Is this possible in Android ? >> > > Sorry, I don't think this is possible... Actually I just thought of a > scenario where it might be possible. If you make Activity B have a > trasparent (or semi-transparent) background then onPause() might not get > called. I have not verified that is the case, but you could try it and see. > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > On Mon, Sep 3, 2012 at 11:59 PM, HK <android....@gmail.com > <javascript:>>wrote: > >> Hi Jugni, >> >> Yes, I know. That's the reason I am asking if its possible. >> >> As I mentioned, I don't have control over Activity A, only B. Activity A >> doesn't belong to me. My activity is activity B. >> >> I didn't understand 'use class file'. Can you please explain in detail ? >> >> thanks. >> >> >> On Tuesday, September 4, 2012 2:33:33 PM UTC+9, jugni wrote: >>> >>> Hello HK, >>> >>> If you know the android life cycle then you may know that when we go to >>> next activity then first activity should be on pause.So if you want the >>> alert dialog then you can also show in the same activity.So why you create >>> the new activity.Or if you want to handle different dialog thenuse the >>> class file and then just call the class file from activity so activity will >>> be running and alert dialog also popup. >>> >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to >> android-d...@googlegroups.com<javascript:> >> To unsubscribe from this group, send email to >> android-developers+unsubscr...@googlegroups.com <javascript:> >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> > > -- 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