Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

yacoub

macrumors member
Original poster
Oct 13, 2007
36
0
So I have all of the files that are used to make a certain app work online: I have the HTML, the PNGs (images), and the JS (javascript).

I want to make it work as a native app that doesn't require being online. How do I do this?

I've confirmed that everything is in the right directory structure to work, by running the application successfully on my desktop without needing to be online. Now I want to port it over to the touch.

I also have a button icon file to use for it.

Is there a way to put a local URL into the .plist file that tells the device what to do when the button is pressed? I basically need to tell the device to load a local webpage that is on the machine, not online.

Do I use localhost:// instead of http:// or something? Are there other changes needed in the plist file to get it to work right?

Also, do I need an actual "application' file or can I just have these HTML pages and the plist and default and button image files and be good to go?

Thanks for any help.
 
i think it needs to be an application, written with UIKit, compiled, etc, then jailbreaking the device and installing it. as far as i know native apps can't be webpages.
 
Hmm, well I've seen that one can create a button app that opens Safari to access a remote URL (i.e. one on the Internet). Is there no way to have Safari access a file on the device itself... i.e. locally?

Or is there a way to use this UIKit thing you mentioned to compile HTML, JavaScript, and PNG image files into an application? I would be able to provide the content if someone knows how to do it.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.