Add xml file and PhoneGap network detection