title: After Installation of apk "Open" and "Done" button shows, onclick of Open button it's not adding categor as launcher
body: <p>Android issue: 
  This issue is coming only 1st time after installation and clicking on open button, after launching application with launcher icon then issue will never come.</p>
  
  <ul>
  <li><p>Steps to reproduce the problem.</p>
  
  <ol>
  <li>Install Any .apk file </li>
  <li>After installation you will get two buttons "Open" and "Done".</li>
  <li>Onclick of Open button it's opening/starting application.</li>
  <li>now Navigate in you application and go to any other screen, like on 2nd screen, 3rd screen.</li>
  <li>Now, Press Home and put application in background (means put in pause sate).</li>
  <li>Now go to list of application Click on Launcher Icon of same application.</li>
  </ol></li>
  <li><p>What happened.</p>
  
  <ol>
  <li>It is Launching Same application from start point at first screen.</li>
  <li>It must resume the running application on 3rd screen.</li>
  <li>Now press back and come out from 1st screen of 2nd time started application.</li>
  <li>It is showing 1st time run application's 3rd screen.</li>
  </ol></li>
  </ul>
  
  <p>I have explain you general behavior after installation and start app with open button.
  In my application it create inconsistent state of 2 times started application.</p>
  
  <ul>
  <li><p>What you think the correct behavior should be.</p>
  
  <ol>
  <li>Application must resume.</li>
  <li>application must not come in inconsistent state.</li>
  </ol></li>
  </ul>
  
  <p>I have some logs..</p>
  
  <ul>
  <li>Clicking on "Open" button logs :</li>
  </ul>
  
  <p>10-04 21:45:28.703: INFO/ActivityManager(243): Starting activity: Intent { act=android.intent.action.MAIN flg=0x10000000 cmp=com.test/.TestnewversionActivity } from pid 15146.</p>
  
  <p>"See no category added in intent above"</p>
  
  <ul>
  <li>Clicking on "Launcher" Icon’s logs :</li>
  </ul>
  
  <p>10-04 21:46:46.109: INFO/ActivityManager(243): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.test/.TestnewversionActivity } from pid 428</p>
  
  <p>"See category added in intent above".</p>
  
  <p>If some one tell me how to Resolve this or tell how to add category as android.intent.category.LAUNCHER on "Open" button click then problem will resolve.</p>
  
  <p>I have tried to add category in intent on app start, oncreate and many places.
  intent.addCategory("android.intent.category.LAUNCHER");
  Also tried to work with IntentFilter, PackageManager.</p>
  
  <p>This issue is in every Android phone. </p>
  
  <p>I have taken Logs on HTC-SENSE 
  Android version 2.3.3</p>