Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6002907
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:02:43+00:00 2026-05-23T01:02:43+00:00

in my app i use list view with setonclickListener . if i try go

  • 0

in my app i use list view with setonclickListener. if i try go next activity by click a image button i get android your content must have a listview whose id attribute is 'android.r.id.list error, in my next activity i have text view and video view(in xml). the error in ddms point out the next activity oncreate().

my first activity xml:

<?xml version="1.0" encoding="utf-8"?>
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent" android:layout_height="100dp"                  android:descendantFocusability="blocksDescendants">
   <image view>....</image view>
   <LinearLayout android:orientation="vertical"    android:descendantFocusability="blocksDescendants"
     <ImageButton android:id="@+id/imageButton1 ... ></ImageButton>
    <ImageButton android:id="@+id/imageButton2 ... ></ImageButton>
    <ImageButton android:id="@+id/imageButton3 ... ></ImageButton>
 </LinearLayout> 
</RelativeLayout>

logcat:

 06-10 16:00:23.526: ERROR/AndroidRuntime(3857): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
06-10 16:00:23.526: ERROR/AndroidRuntime(3857):     at android.app.ListActivity.onContentChanged(ListActivity.java:236)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857):     at android.app.Activity.setContentView(Activity.java:1622)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857):     at com.exercise.AndroidList.videoview.onCreate(videoview.java:11)
06-10 16:00:23.526: ERROR/AndroidRuntime(3857):     at  android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)

videoview is my next activity. please help me.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:02:43+00:00Added an answer on May 23, 2026 at 1:02 am

    If your second activity is a ListActivity it needs a layout that contains a ListView element with android:id=”@android:id/android:list”, if your second activity is not a ListView it should not extend ListActivity.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

in my app i have a list view. Each list consists of a image,
I tried using reflection to use a custom List View for an App with
in my app i use list view. in the list view i have three
if your app use this solution , do do you plan port the app
I have one listView in my app, which i is use to list the
I am developing an app which has a list view with custom layout as
I have an RSS feed parsed into a list view in my app. I'm
Im about to make a android app and would like to use In-App-purchase in
I have a list view in my RoR web app. The view is a
In a ASP.NET MVC 4 app I have a view with a paged list

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.