java - Stop music after resume using FLAG_ACTIVITY_NEW_TASK -



java - Stop music after resume using FLAG_ACTIVITY_NEW_TASK -

i'm working in app android. i'm streamming online radios. i'm facing issue related app. displayed notification message, when user click on it, should reopen lastly activity. bring in front end lastly activity set flag_activity_new_task option. works ok. problem music, because when activity brought front end stopped. i've set setretaininstance(true) in oncreate method.

i tried not using flag , works good, i'm creating many activities in process: 1 per each time notification clicked.

i checked i'm not setting pause/stop of mediaplayer.

edit

this solved. see answer.

i removed flag in notification intent, result in undesirable behavior when nail button. so, need override onbackpressed , calling myself activity.

java android

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -