title: set focus to input box and showing android keyboard using jquery mobile on pageshow
body: <p>I am trying to set focus to the input box and showing android keyboard using jquery mobile on pageshow. </p>
  
  <p>I tried a lot of options from web. but none is working as expected in both emulator and mobile.</p>
  
  <p>Here is the Code:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
      &lt;head&gt;
          &lt;title&gt;Title&lt;/title&gt;
          &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
          &lt;meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/&gt;
          &lt;link rel="stylesheet" href="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.css" /&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div data-role="page" id="main"&gt;
              &lt;div data-role="header"&gt;&lt;h3&gt;Set Focus, Show Keyboard&lt;/h3&gt;&lt;/div&gt;
              &lt;div data-role="content"&gt;
                  &lt;label for="gotoPage"&gt;&lt;/label&gt;
                  &lt;input type="text" name="gotoPage" id="gotoPage" placeholder="Question No." data-mini="true"   /&gt;
              &lt;/div&gt;
          &lt;/div&gt;                              
  
          &lt;script src="http://code.jquery.com/jquery-1.8.2.min.js"&gt;&lt;/script&gt;
          &lt;script&gt;
              $(document).on('pageinit',"[data-role=page]", function() {  
  
              });
  
              $(document).on('pagebeforeshow',"[data-role=page]", function() {                
  
              });
  
              $(document).on('pageshow',"[data-role=page]", function() {  
                  $('#gotoPage').focus().select();                        
              }); 
          &lt;/script&gt;
          &lt;script src="http://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js"&gt;&lt;/script&gt;      
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p><strong>Find the Screen shots for reference</strong></p>
  
  <p><img src="https://i.stack.imgur.com/tNqpW.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/dBdCD.jpg" alt="enter image description here"></p>
  
  <p>Kindly advice... Thanks in advance...</p>
  
  <p><strong>NOTE:</strong></p>
  
  <p><strong>As per Omar comment it is working fine in ios....
  anyone can suggest how we get work this in android?</strong> </p>