added HTTP get support for Android

This commit is contained in:
rnvahey@gmail.com
2009-02-25 15:56:43 +07:00
parent 0e2d4d6af7
commit 62961fb95d
7 changed files with 49 additions and 2 deletions
+11 -1
View File
@@ -233,6 +233,16 @@ public class PhoneGap{
mCtx.unregisterReceiver(mSmsListener);
}
}
public void httpGet(String url, String file)
/**
* grabs a file from specified url and saves it to a name and location
* the base directory /sdcard is abstracted so that paths may be the same from one mobile OS to another
* TODO: JavaScript call backs and error handling
*/
{
HttpHandler http = new HttpHandler();
http.get(url, file);
}
}