开发者

android emulator restarts itself (ADT)

开发者 https://www.devze.com 2023-03-21 03:03 出处:网络
When i invoke a function which is described below, android emulator restarts from beginning. The function is like that

When i invoke a function which is described below, android emulator restarts from beginning.

The function is like that

int index = 0;
 Position myPostion;
 Position destPosition = roadInstruction.getInstructionAt(index).getEndAddr();

 while(index<roadInstruction.getNumInstruction())
 {开发者_如何学运维  
    myPostion = getMyPosition();

    while(!hasArrivedToDestination(myPostion, destPosition ))
    {
        myPostion = getMyPosition();

    }
    ++index;
}

What is the reason? It maybe because of the inner while loop, but i am not sure.

0

精彩评论

暂无评论...
验证码 换一张
取 消