SuperNotCalledExeption onPause()

时间:2014-11-16 00:58:49

标签: fragment onpause

我正在使用这个例子:http://android-er.blogspot.com/2012/07/implement-gallery-like.html但是在一个片段中我得到onPause()的SuperNotCalledException我使用了调试器并且在将图像添加到线性视图时失败但不确定为什么如果有人可以帮助我,我将非常感激:

File [] files = targetDirector.listFiles();

    for (File file : files){
     myGallery.addView(insertPhoto(file.getAbsolutePath()));

    }    

1 个答案:

答案 0 :(得分:0)

请务必使用super.onPause()方法拨打onPause()