Android 异常回调调用
我有这样一个问题:在安卓操作系统的设备上,我正在执行动作脚本代码。我有一个方法,必须向服务器发送一些数据。但是即使我在向服务器发送数据之前停止了应用程序,它仍然会以某种方式发送数据。我不明白怎么会这样??有人面临这个问题吗?请帮帮我。谢谢Android 异常回调调用,android,flash,air,Android,Flash,Air,我有这样一个问题:在安卓操作系统的设备上,我正在执行动作脚本代码。我有一个方法,必须向服务器发送一些数据。但是即使我在向服务器发送数据之前停止了应用程序,它仍然会以某种方式发送数据。我不明白怎么会这样??有人面临这个问题吗?请帮帮我。谢谢 public class VerifyCommand extends SimpleCommand { override public function execute(notification:INotification):void
public class VerifyCommand extends SimpleCommand
{
override public function execute(notification:INotification):void
{
//here is the place, where I put breakpoint and stop the program
trace("here is the place, where I put breakpoint and stop the program");
verify();
}
private function verify():void
{
var tempError:Error = new Error();
var stackTrace:String = tempError.getStackTrace();
trace(stackTrace);
var request : URLRequest = new URLRequest();
request.url = "http://www.somesite.com";
request.method = URLRequestMethod.POST;
request.contentType = "application/x-www-form-urlencoded; charset=utf-8";
request.data = variables;
request.useCache = false;
request.cacheResponse = false;
var call_loader:URLLoader = new URLLoader();
call_loader.dataFormat = URLLoaderDataFormat.TEXT;
call_loader.addEventListener(Event.COMPLETE, onVerificationResult);
call_loader.addEventListener(IOErrorEvent.IO_ERROR, onVerificationError);
call_loader.load(request);
}
private function onVerificationResult(event:Event):void
{
trace("all ok");
}
private function onVerificationError( event:Event):void
{
trace("all failed");
}
}
这是一个调试器的错误,它没有停在我认为应该停的地方