title: How to display log message when an activity is started in Android
body: <p>I am in one activity say Activity A. I am calling another activity B.
  In activity A I write the following Statement:
   startActivity(new Intent(this,ActivityB.class));</p>
  
  <p>Now, I want to log a  debug message  only when Activity A is able to successfully launch ActivityB.
  How can I achieve this feature in Android.
  Any kind of Help is appreciated
  Thanks,</p>