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 1114461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T03:00:35+00:00 2026-05-17T03:00:35+00:00

I need to change Activity to ListActivity. But I can’t start my project… do

  • 0

I need to change Activity to ListActivity. But I can’t start my project… do ı need change manifest.xml for it??

Or how can I change screen from Activity to ListActivity? Is there any difference to startActivity(new Intent(this, list.class)) ?

10-05 17:34:54.722: ERROR/AndroidRuntime(11550): java.lang.RuntimeException: Unable to start activity ComponentInfo{spexco.hus.cepvizyon/spexco.hus.cepvizyon.CepVizyon}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2512)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ActivityThread.access$2200(ActivityThread.java:119)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1863)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.os.Handler.dispatchMessage(Handler.java:99)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.os.Looper.loop(Looper.java:123)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ActivityThread.main(ActivityThread.java:4363)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at java.lang.reflect.Method.invokeNative(Native Method)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at java.lang.reflect.Method.invoke(Method.java:521)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:860)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at dalvik.system.NativeStart.main(Native Method)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550): Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ListActivity.onContentChanged(ListActivity.java:236)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:201)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.Activity.setContentView(Activity.java:1622)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at spexco.hus.cepvizyon.CepVizyon.onCreate(CepVizyon.java:21)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
10-05 17:34:54.722: ERROR/AndroidRuntime(11550):     ... 11 more
10-05 17:34:55.432: ERROR/PowerManagerService(129): setPowerState SystemProperties.get siBefornormal
10-05 17:35:01.872: ERROR/PowerManagerService(129): setPowerState SystemProperties.get siBefornormal




     public class CepVizyon extends ListActivity  {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        requestWindowFeature(Window.FEATURE_NO_TITLE);  
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,   
                                WindowManager.LayoutParams.FLAG_FULLSCREEN); 
        setContentView(R.layout.main); 
        ListView list=(ListView) findViewById(R.id.list);
        ImageButton b1 = (ImageButton) findViewById(R.id.menu_mycameras);
        ImageButton b2 = (ImageButton) findViewById(R.id.menu_aboutus);
        ImageButton b3 = (ImageButton) findViewById(R.id.menu_help);

        b1.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent=new Intent(CepVizyon.this, CameraSelectScreen.class);
                startActivity(intent);

                // TODO Auto-generated method stub

            }
        });
        b2.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                Intent intent=new Intent(CepVizyon.this,MainActivity.class);
                startActivity(intent);
                // TODO Auto-generated method stub

            }
        });
        b3.setOnClickListener(new OnClickListener() {

            @Override
            public void onClick(View v) {
                // TODO Auto-generated method stub


            }
        });
    }
}

this is my class..

And This is my main.xml I dont use list there, ı put ıt for error stack. but nothıng change.

<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
android:orientation="vertical" android:layout_weight="3">

<ImageButton android:layout_weight="1" android:id="@+id/menu_mycameras"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:background="@drawable/menu_cameras">
</ImageButton>
<ListView android:id="@+id/list" android:layout_width="fill_parent" android:layout_height="wrap_content" ></ListView>
<ImageButton 
    android:paddingTop="20px"
    android:layout_weight="1" android:id="@+id/menu_aboutus"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:background="@drawable/menu_aboutus">
</ImageButton>

<ImageButton android:layout_weight="1" android:id="@+id/menu_help"
    android:layout_width="fill_parent" android:layout_height="fill_parent"
    android:background="@drawable/menu_help">
</ImageButton>

</LinearLayout>

  • 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-17T03:00:35+00:00Added an answer on May 17, 2026 at 3:00 am

    The ID of your ListView must be: “@android:id/list”. This way the ListActivity will find it.

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

Sidebar

Related Questions

I need change background of all text that have two spaces from the start
I need to change table name from lowercase to uppercase but using this statement
i am developing one android application,there i need to change layout of activity at
i need change color of SystemTray.ProgressIndicator color, how i can do it? I tried
I have this situation: $(#button).toggle(function(){ $(#window).animate({top:'0%'},1000); },function(){ $(#window).animate({top:'-100%'},1000); }); but I need change it
I use Pjax with tutorial from http://railscasts.com/episodes/294-playing-with-pjax?view=comments I don't need change url and this
In my project whenever I extend activity it works fine but as soon as
I need to change background of the activity dynamically , by selecting an image
when i change my activity to fullscreen, the statusbar performs an animation,but not disappear
I have an activity which handles configuration changes. But now i have to change

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.