title: android startActivity from intent in service
body: <p>i try to use intent in service but when i try this :</p>
  
  <pre><code>Intent intent_facebook = new Intent (this,MainUploadToYoutube.class);
  intent_facebook.putExtra("vid", vid);
  startActivity(intent_facebook);
  </code></pre>
  
  <p>got this error on logcat : </p>
  
  <pre><code>Calling startActivity() from outside of an Activity context requires the FLAG_ACTIVITY_NEW_TASK flag. Is this really what you want?
  </code></pre>
  
  <p>so i tried this from here : </p>
  
  <p><a href="https://stackoverflow.com/questions/3606596/android-start-activity-from-service">android start activity from service</a></p>
  
  <pre><code>Intent  intent_facebook = new Intent(getBaseContext(), MainUploadToYoutube.class);
  intent_facebook.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
  getApplication().startActivity( intent_facebook);
  </code></pre>
  
  <p>but this do nothing and i did not get error in logcat</p>
  
  <p>what wrong ?  </p>