I am trying to start a new activity from inside a service. I am using the following code, as many have suggested:
Intent i = new Intent(m_Context, myActivity.class);
i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
m_Context.startActivity(i);
But, it gives an android.content.ActivityNotFoundException and says that I have to add the activity to my manifest. But the problem is that this is a service and has no manifest. Is there a way to start an activity without entering it in a manifest file?