6 Replies Latest reply on Aug 27, 2013 8:23 PM by Lampei

    URLLoader on Mobile Device in AIR app

    Mr Draust



      Im trying to get some response text (xml to be precise) from a server in my AIR app. If i send a GET request to the server, it should send me back some XML so i can process it. This is all done via a Mobile Application in AIR.


      It runs perfectly on my PC but as soon as i try it on my Android Tablet, it just doesnt work.


      What ive tracked it down to, is for some reason, as soon as i put a method typee such as POST or GET, into the URLRequest object, it just doesnt return any data. And i cant figure out why its not returning data.


      Heres the code:


      private function login(url:String):void

        var req:URLRequest = new URLRequest(url);
        var loader:URLLoader = new URLLoader();

        req.data = "";
        req.method = URLRequestMethod.POST;
        urlLoader.addEventListener(Event.COMPLETE, handler);



      Just doesnt make sense why it would not return data, if i run it on my mobile device.


      Any ideas?