title: Start Activity from Service in Android
body: <p>Android:</p>
  <pre><code>public class LocationService extends Service {
  
      @Override
      public void onStart(Intent intent, int startId) {
          super.onStart(intent, startId);
          startActivity(new Intent(this, activity.class));
      }
  }
  </code></pre>
  <p>I launched this service from <code>Activity</code></p>
  <p>In <code>Activity</code> if condition satisfies start</p>
  <pre><code>startService(new Intent(WozzonActivity.this, LocationService.class));
  </code></pre>
  <p>from my <code>LocationService</code> mentioned above could not launch <code>Activity</code>, how can I get context of current running <code>Activity</code> in service class?</p>