title: Android web application on cloud storage
body: <p>I have a cloud storage website and I want to create an Android application for that website.</p>
  
  <p>I tried 2  methods.</p>
  
  <p>First Method</p>
  
  <p>Using Phonegap to open a remote website which handles everything and its built-in PHP so everything works fine. But a Cloud Storage app must allow uploading and downloading. In Phonegap I can upload through the website but can't download directly to local storage. It can only be done locally if my website is in the local www folder. Also in this way API of Phonegap can't be used either. If I download any file the browser opens up, in this case.</p>
  
  <p>Second Method:</p>
  
  <p>I tried to use Phonegap locally and just create an API of my cloud storage website so that locally with the help of jQuery ,Ajax so that I can post data to the remote URL, but that can't be done due to the Same Origin policy. I may receive the JSON data of files and show but can't log the user in and other features. :( Again a problem.</p>
  
  <p>What else can I do? Is there any other method or solution you can provide me regarding these two methods or any alternative method I can use?</p>