title: How to show new activity(screen) using WorkManager
body: <p><strong>MyWorker.class:</strong></p>
  
  <pre><code>public class MyWorker extends Worker {
  
      public MyWorker(@NonNull Context context, @NonNull WorkerParameters workerParams) {
          super(context, workerParams);
      }
  
  
      @NonNull
      @Override
      public Result doWork() {
          Log.d("TAG","WORK: ");
          //my actual work....
  
          Intent intent = new Intent(getApplicationContext(), NewScreen.class);
         getApplicationContext().startActivity(intent);
  
          return Result.success(); //true - success / false - failure
      }
  }
  </code></pre>
  
  <p><strong>MainActivity:</strong></p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
       OneTimeWorkRequest oneTimeWorkRequest;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
         // TextView textView = findViewById(R.id.text);
  
          oneTimeWorkRequest = new OneTimeWorkRequest.Builder(MyWorker.class)
                  .setConstraints(new Constraints.Builder()
                          .setRequiredNetworkType(NetworkType.CONNECTED)
                          .build())
                  .build();
  
  
          WorkManager.getInstance().enqueue(oneTimeWorkRequest);
      }
  }
  </code></pre>
  
  <p>I am trying to open a new activity(screen) from the MainActivity using WorkManager. Trying to learn and experiment with WorkManager. The logs if I enter run i.e the doWork() gets executed. Also I added breakpoint on intent and it worked but the UI doesnt gets affected.</p>
  
  <p>FYI - I am new and learning WorkManager and Background processes.</p>