android - How to show an alert dialog without activity background -


i creating notification using below code.

notificationmanager nm = (notificationmanager)getsystemservice(context.notification_service);         notification notification = new notification(r.drawable.ic_launcher, "don't forget", system.currenttimemillis());         notification.defaults|=notification.default_sound;         notification.defaults|=notification.default_lights;         notification.defaults|=notification.default_vibrate;         intent intent2 = new intent(create_notification.this,after_alarm.class);         intent2.putextra("arr", arr);         pendingintent pintent = pendingintent.getactivity(create_notification.this, 0,intent2 ,0 );         nm.notify(i, notification); 

i want show string on alert dialog after clicking on notifiction.for doing created alert dialog in oncreate() of activity(i.e after_alarm activity) showing background of after_alarm activity , alert dialog on it.i want show alert dialog.is way make activity visible alert dialog.i changed theme of after_alarm of activity alertdialog dis not wat want.it occupying large space of screen. plz me thnx

as said in comment, can make activity transparent , show alert dialog on top of it. see answers how create transparent activity on android? , how make activities transparent how make transparent. hope helps.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -