title: Navigate from Activity to Fragment
body: <p>I am working an android app that has one activity and multiple fragment so I added a lockout feature which locks out the user if there is no interaction in ten minutes. I did this by creating an activity that extends AppCompatActivity and navigates to lockScreenActivity if there is no interaction with the app. Now after the app is unlocked from a web socket I want to navigate back to the activity retaining the current fragment before navigation. How should I go about it. </p>
  
  <p>Searches in stack overflow suggests that I do:</p>
  
  <p>startActivity(new Intent(this, MainActivity.class));</p>
  
  <p>This does not work for me, calling finish on LockScreenActivity did not work too.</p>
  
  <p>Thanks.</p>