java - new Intent not starting from Service ( Tried all solutions from Google) -


here how activity defined in androidmanifest.xml file:-

<activity android:name=".mydialog"             android:launchmode="singletask"             android:theme="@android:style/theme.dialog"/> 

how service defined :-

  <service         android:name=".chatheadservice"         android:process=":chathead"/> 

how call service:-

intent intent = new intent(this, mydialog.class); intent.setaction(intent.action_view); intent.setflags(intent.flag_activity_new_task); startactivity(intent); 

still activity doesn't start ! please help. :)

from inside service class

intent intent = new intent(this, mydialog.class); intent.addflags(intent.flag_activity_new_task); startactivity(intent ); 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -