Creating a Dynamic Manifest File
Now that you're comfortable with how the offline app cache works, let's apply it to the Kilo example we've been working on. Kilo consists of quite a few files and manually listing them all in a manifest file would be a pain. Plus, a single typo would invalidate the entire manifest file and prevent the application from working offline. Running PHP Scripts on Your Web Server PHP is a versatile web-scripting language, and is supported by most web hosting providers. This means that on most web...
Download the Android SDK
PhoneGap works in conjunction with the Android SDK, so before we can get started with PhoneGap, we need to download and install the Android SDK itself. Follow the steps here to do so 1. Navigate to the Android SDK download page and download the package appropriate for your platform. If you are on Windows or Linux, you will need to install Java see http java.sun.com javase downloads first. My development machine is a MacBook Pro running Mac OS X 10.6, so in my case, the appropriate package is...
Installing KiloGap in the Emulator
Now it's time to test our shiny new native Android app in the emulator. 1. If your emulator is not running, launch it by entering the following command in the Terminal application this way, you can let it warm up while you're building the Kilo package You should see the Android emulator window appear after a few seconds. Notice that the command prompt doesn't return in the terminal window it will sort of just sit there and hang until you close the emulator. We won't be interacting with this...
P
p paragraph tag HTML , 3 padding, adding to content, 22 page scaling, controlling, 19 page title, setting, 41-42 pageAnimationBegin event, 139 pageAnimationEnd event, 138 PATH environment variable, 111, 115, 116 PhoneGap development tool accelerometer app, 137-140 beep, vibrate, alert functions, 128-131 building KiloGap, 118-122 controlling phones with JavaScript, 128140 creating Android virtual device, 117 downloading, 114 downloading Android SDK, 110-114 geolocation app, 132-137 installing...
Installing KiloGap on Your Phone
If you have an actual Android device at your disposal, you can install Kilo on it directly. The instructions for doing so are similar to the steps for the emulator installation 1. Plug your phone in to the USB port on your laptop. 2. Enable debugging on your phone by navigating to Settings Applications Development and enabling the USB Debugging option. 3. Open a terminal window and navigate into the KiloGap directory. In my case, the command to do so is 4. If you haven't compiled it already,...


