Flex android 开发。相关网络

Flex android development. Network concerned

我现在正在开发一个 flex android 程序。在此应用程序中,我使用 AMF 通道连接到我的服务器。该应用程序在 wifi 连接中运行良好。但是,当我断开 WIFI 连接并尝试 运行 我的 GPRS 应用程序时,一个奇怪的框打动了我。! 这是我关于堆栈溢出的第一个问题,所以也许我不能用图片来描述对话框。这是一个带有奇怪边框的对话框。我的手机屏幕无法显示整个对话框。文本输入框后面有一个文本输入框(默认输入为“192.168.1.187”)和两个按钮(一个名为确定,另一个为取消)。在对话框的底部还有另一个按钮 "Close"。

当我运行我的应用程序在无wifi环境下时,频道建立过程很慢。几秒钟后,对话框出现。

我不知道对话来自哪里。我确定我从来没有在我的代码中定义这个丑陋的对话框。并且我已经删除了所有与IP地址“192.168.1.187”相关的代码(这是我电脑的IP地址,我已经尝试在局域网中测试我的代码)

在我登录我的应用程序后,该对话框也会每隔几秒钟出现一次。但是wifi连接没有任何反应。

static public function ConnectServer(url:String):void
    {
        channel = new AMFChannel("pyamf-channel",url);
        channel.connectTimeout = 15;


        channel.addEventListener(ChannelEvent.DISCONNECT,function(event:ChannelEvent):void{
            event.preventDefault();
            trace("Error1");
        });
        channel.addEventListener(ChannelFaultEvent.FAULT,function(event:ChannelFaultEvent):void{
            //event.preventDefault();
            trace("Error2");

        });
        channel.addEventListener(ChannelEvent.CONNECT,function(event:ChannelEvent):void{
            trace("connect success");
            if(channelSet != null)
            {
                remoteObject = new Remote_Object(channelSet,SystemParam.Remote_Service_Name);
                SystemParam.Remote_Service = remoteObject;

                trace("already go from here.");


            }
        });

        trace("spring comes."+ channel.toString());
        channelSet = new ChannelSet();
        channelSet.addChannel(channel);
        channel.connect(channelSet);

    }

我不知道这是怎么回事,现在该怎么办。

问题已于上周解决。

我删除了我的项目并从服务器上检出它。事情搞定了。