解决方案 »

  1.   


    没有任何异常信息,程序是很正常的跑,就是不显示图片。我是用定时器,然后imageSwitcher.setImageURI(Uri.parse(filePath));动态显示图片。
    我在这句话的前后都加了日志输出,都正常,就是图片不显示,很奇怪。
      

  2.   

    我估计你的问题出在ImageView imageView = new ImageView(instance);其中的instance如果是静态变量,就会出现你的问题。
      

  3.   


    instance还真是静态变量,怎么改进啊?
      

  4.   

    而且为什么是静态的,就不行呢?public static ImageActivity instance;
    instance = this;