日食停留在正在运行的程序 [英] eclipse stuck at running program

查看:169
本文介绍了日食停留在正在运行的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是图片后,我结束任务日食。

我的Andr​​oid程序没有错误,而这个问题之前,一切都很好。 当我添加了一些code到我的程序它发生。它被卡住后,我点击运行按钮。 这也发生在我跑我的手提电话的调试程序。 其他程序都工作正常,只有一个被卡住。

我的意思是卡住日食保持节目启动myprogram(100%)进度条,但它并没有跑出来的模拟器。

当我尝试删除,并导入了一遍似乎没有,我不能删除classes.dex文件,我必须重新启动计算机以查找它允许删除,我必须强制程序关闭。 我寻觅在这个网站,他们说,保持开放的仿真器,但它并没有为我工作。

下面

是我添加的连接编码。

  //检查网络连接
私人布尔chkConnectionStatus(){
    ConnectivityManager connMgr =(ConnectivityManager)
    this.getSystemService(Context.CONNECTIVITY_SERVICE);

    最后android.net.NetworkInfo无线=
    connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);

    最后android.net.NetworkInfo移动=
    connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);

    如果(wifi.isAvailable()){
      返回true;
     }
        否则如果(mobile.isAvailable()){
          返回true;
     }
     其他
     {
         Toast.makeText(这一点,检查您的互联网,Toast.LENGTH_LONG).show();
         返回false;
     }
}
 

解决方案

问题解决了,它是由卡巴斯基反virus.Thank您所有帮助引起

This is the picture after I end task the eclipse.

My Android Program has no errors, and before this problem it was all fine. It happened when I added some code into my program. It gets stuck after I click the run button. This also happens when I run my handphone for debugging the program. Other programs are all working fine, only one is stuck.

the meaning of my stuck is the progress bar of eclipse keep show launching myprogram (100%) but it didn't running out the emulator.

When I try to remove and import it again seem there is a classes.dex file which I cannot delete, I have to restart my computer for it to allow to delete and I have to force the program to close. I have searched at this website and they said keep open the emulator but it doesn't work for me.

below is the connecting coding that i added.

    //check internet connection
private boolean chkConnectionStatus(){
    ConnectivityManager connMgr = (ConnectivityManager)
    this.getSystemService(Context.CONNECTIVITY_SERVICE);

    final android.net.NetworkInfo wifi =
    connMgr.getNetworkInfo(ConnectivityManager.TYPE_WIFI);

    final android.net.NetworkInfo mobile =
    connMgr.getNetworkInfo(ConnectivityManager.TYPE_MOBILE);

    if( wifi.isAvailable() ){     
      return true;
     }
        else if( mobile.isAvailable() ){      
          return true;        
     }
     else
     { 
         Toast.makeText(this, "Check your internet" , Toast.LENGTH_LONG).show();
         return false;
     }
}

解决方案

problem was solved, it is caused by kaspersky anti-virus.Thank you for all help

这篇关于日食停留在正在运行的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆