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

  • Home
  • SEARCH
  • 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 8711191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:48:47+00:00 2026-06-13T04:48:47+00:00

i have a listview and when i click on an item it display a

  • 0

i have a listview and when i click on an item it display a message and then when i click “ok” i want to pass to another activity, this my code:

 public void onItemClick(AdapterView<?> parent, View view, int position,
                long id) {
// TODO Auto-generated method stub
 ServerContent item = listAdapter.getItem(position);
Log.e("onitemclick","listadapter");
item.select();

newactivity n = new newactivity();
   Intent newActivity = new Intent();     
startActivity(newActivity);
            }

and i add this in the manifest.xml

<activity android:label="@string/app_name" android:name="newactivity"/>

this the newactivity :

public class newactivity {
    Intent intent;
    protected void onCreate(Bundle savedInstanceState) {

         intent = getIntent();
         intent.addCategory("category");
        //String value = intent.getStringExtra("key"); //if it's a string you stored.
}

    private Intent getIntent() {
        // TODO Auto-generated method stub
        Intent n = new Intent();
        n.addCategory("  ");
        return n;
    }

i got those errors

10-18 11:01:02.277: W/dalvikvm(333): threadid=1: thread exiting with uncaught exception (group=0x40015560)
10-18 11:01:02.297: E/AndroidRuntime(333): FATAL EXCEPTION: main
10-18 11:01:02.297: E/AndroidRuntime(333): android.content.ActivityNotFoundException: No Activity found to handle Intent {  }
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1409)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.app.Instrumentation.execStartActivity(Instrumentation.java:1379)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.app.Activity.startActivityFromChild(Activity.java:3067)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.app.Activity.startActivityForResult(Activity.java:2847)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.app.Activity.startActivity(Activity.java:2933)
10-18 11:01:02.297: E/AndroidRuntime(333):  at com.upnpexample.BrowseServerActivity$1$1.onItemClick(BrowseServerActivity.java:227)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.widget.AdapterView.performItemClick(AdapterView.java:284)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.widget.ListView.performItemClick(ListView.java:3513)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.widget.AbsListView$PerformClick.run(AbsListView.java:1812)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.os.Handler.handleCallback(Handler.java:587)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.os.Handler.dispatchMessage(Handler.java:92)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.os.Looper.loop(Looper.java:123)
10-18 11:01:02.297: E/AndroidRuntime(333):  at android.app.ActivityThread.main(ActivityThread.java:3683)
10-18 11:01:02.297: E/AndroidRuntime(333):  at java.lang.reflect.Method.invokeNative(Native Method)
10-18 11:01:02.297: E/AndroidRuntime(333):  at java.lang.reflect.Method.invoke(Method.java:507)
10-18 11:01:02.297: E/AndroidRuntime(333):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
10-18 11:01:02.297: E/AndroidRuntime(333):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
10-18 11:01:02.297: E/AndroidRuntime(333):  at dalvik.system.NativeStart.main(Native Method)
10-18 11:01:05.376: I/Process(333): Sending signal. PID: 333 SIG: 9
  • 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-06-13T04:48:49+00:00Added an answer on June 13, 2026 at 4:48 am

    I hope its not a typo:

        <activity android:label="@string/app_name" android:name="newactivity"/>
    

    There is no “.” here before the activity name.
    It should be like:

        <activity android:label="@string/app_name" android:name=".newactivity"/>
    

    or you can even specify full qualified name of the activity eg.

        <activity android:label="@string/app_name" android:name="com.yourproject.activity.newactivity"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with custom listview item click. In my activity I have
I have a ListView to display category items, below this, I have a control
I have a ListView in VB.Net. I want to use it to display a
I have a code for dictionary application. If user click list item in the
I have a listview but the items only display when I click on them.
Hi i have successfully developed one listview app..now i have to click any item
I have a ListView whereby I want to display one context menu if an
I have ListView with about 30 items. When I click on an item, some
I have listview having customized some textview and one imageview. When I long click
I have a Listview and I need a special behavior. When I click the

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.