Ich bin Anfänger von Android. Ich habe das TabActivity mit ExpandableListActivity Beispiel gefunden. Ich habe 3 Tabs, Artics, Album, Songs. Im Album möchte ich mit AlbumActivity alle Alben auflisten. Ich starte das Programm, wenn ich auf Album klicke läuft es in Fehler runter. Wo ich falsch gemacht habe?Android Tabactivity mit ExpandableListActivity
album_list.xml
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:id="@+id/android:empty"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/no_album"/>
</LinearLayout>
AlbumActivity.java
public class AlbumsActivity extends ExpandableListActivity { ... ...onCreate... setContentView(R.layout.album_list); registerForContextMenu(getExpandableListView());
Was ist die Ausnahme in Logcat? – techiServices