Removing Debug Code

There's no reason to have debugging or logging code slowing down your app while it's running on a user's phone. If you have added any such code (see "The JavaScript Console" on page 107) to your HTML, CSS, or JavaScript files, now's the time to take it out.

You should also open up the AndroidManifest.xml file in the KiloGap folder, search for "debuggable" and set it to false. When you're done, it should look something like this:

<application android:icon="@drawable/icon"



While you have the manifest file open, you might as well check to make sure android:icon and android:label are specified as shown in the previous listing. PhoneGap normally takes care of this for you, but I think it's worth double checking, because you won't be able to upload your app if these values are not set.

0 0

Post a comment