title: choose image from android image gallery - PhoneGap not working
body: <p>For Android in PhoneGap 2.8.0:</p>
  
  <p>I need to get image from phone gallery and need to insert in app... </p>
  
  <p><strong>My code:</strong></p>
  
  <p><strong>HEAD:</strong></p>
  
  <pre><code>&lt;meta name="viewport" content="width=device-width,initial-scale=1"/&gt;
  &lt;link rel="stylesheet" href="css/jquery.mobile-1.0rc1.min.css" /&gt;
  &lt;link rel="stylesheet" href="css/styles.css" /&gt;
  
  &lt;script src="js/jquery.js"&gt;&lt;/script&gt;
  &lt;script src="js/jquery.mobile-1.0rc1.min.js"&gt;&lt;/script&gt;
  &lt;script src="js/cordova.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p><strong>HTML:</strong></p>
  
  <pre><code>&lt;button data-theme="d" onclick="getPhoto(pictureSource.PHOTOLIBRARY);"&gt;Browse    Photos&lt;/button&gt;
  
  &lt;div id="photos"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>SCRIPT</strong>:</p>
  
  <pre><code>function onPhotoURISuccess(imageURI) {
  
  var img = $('&lt;img /&gt;');
  img.attr('src', imageURI);
  
  
  img.appendTo('#photos');
  
  }
  </code></pre>
  
  <p>But its not working....how can i do this?</p>
  
  <p>error that i got in console</p>
  
  <p><strong>file:///android_asser/www/index.html: Uncaught typeerror : cannot read property 'PHOTOLIBRARY' of undefined</strong></p>
  
  <p><strong>Uncaught typeerror : [Object Object] has no method 'split' at file:///android_asset/www/js/jquery.mobile-1.0rc1.min.js</strong></p>
  
  <p>after i removed the jquery and jquery-mobile its working... any problem with jQuery with phonegap?</p>
  
  <p>Thanks in advance</p>