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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:49:16+00:00 2026-05-30T17:49:16+00:00

In android project/application,I want to display screen2 containing listview when the list item of

  • 0

In android project/application,I want to display screen2 containing listview when the list item of screen1 gets clicked.I have tried a lot but after clicking on screen1, screen2 is not desplaying.And can u tell me where should i write the code for onClick event of listview of screen1 and displaying code of listview of screen2….that is should i create different class other than the class created while creating new project ?…Please help me by giving complete code for both the listviews…i have tried a lot.

  • 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-30T17:49:17+00:00Added an answer on May 30, 2026 at 5:49 pm

    Simple enough, Start a new activity when the user clicks on a listview item.

    listview.setOnItemClickListener(new OnItemClickListener() {
    
    @Override
    public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
         Intent intent = new Intent(ThisActivity.this, NextActivity.class);
         startActivity(intent);
    
         }
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Android project for SDK1.5 and now I want to convert it
i have made an android application for Project Build Target as Target name:: Android
I want to fork an Android project (a normal application) from the official repository
I have an android library project. I want to build this project into a
I have an Android project created in Eclipse . I want to modify the
I have an Android (2.2) project in Eclipse (Helios). I want to add an
I am working with the sample Home application project on http://developer.android.com/resources/samples/Home/index.html I've added another
I have an Android project that branched into three different applications, app-1 , app-2
I created an Android project a few months ago and now have to automate
I have an Android project and Eclipse is telling me my project has an

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.