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

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -