Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/233.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在android应用程序中同时实现ListView和YouTubeFailureRecoveryActivity_Android_Android Listview_Youtube Api_Android Youtube Api - Fatal编程技术网

在android应用程序中同时实现ListView和YouTubeFailureRecoveryActivity

在android应用程序中同时实现ListView和YouTubeFailureRecoveryActivity,android,android-listview,youtube-api,android-youtube-api,Android,Android Listview,Youtube Api,Android Youtube Api,我正在尝试实现这样的东西,理想情况下是这样的,但由于不支持多重继承 MyClass ABC extends ListActivity,YouTubeFailureRecoveryActivity{ } 我现在正在使用 MyClass ABC extends YouTubeFailureRecoveryActivity{ } 以及使用以下内容实现listView 但它不起作用,该应用程序在2.3上运行良好,但在4.1中有时会崩溃 该应用程序在4.1中崩溃 convertView = lay

我正在尝试实现这样的东西,理想情况下是这样的,但由于不支持多重继承

MyClass ABC extends ListActivity,YouTubeFailureRecoveryActivity{

}
我现在正在使用

MyClass ABC extends YouTubeFailureRecoveryActivity{

}
以及使用以下内容实现listView 但它不起作用,该应用程序在2.3上运行良好,但在4.1中有时会崩溃

该应用程序在4.1中崩溃

convertView = layoutInflator.inflate(R.layout.episode_list, null);
接口是唯一的解决方案,还是还有其他方法可以实现

Logcat


在清单文件中做了以下更改,并且成功了

 android:largeHeap="true"
在标记的清单文件中

 android:largeHeap="true"