I have come to be responsible for adding push notification capabilities to a phonegap project. Things in iOS are working smoothly but Android is causing some trouble. The problem seems to be that the application package/bundle name is com.phonegap.helloworld. Urbanairship does not like a "duplicate package name", which was easily changed in xcode but not so easily changed in the android side.
I attempted the accepted answer from this question: Change package name to existing Phonegap projects that is, I changed the the 'package' field in the platforms/android/AndroidManifest.xml and then refactored the directory structure to reflect this new package. When I built the android app, however, the old directory that I'd mv'd to reflect the package name change reappeared. The AndroidManifest.xml file had also been altered so that the 'package' field was back to com.phonegap.helloworld.
So I am baffled - how do I change the package name?