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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:51:59+00:00 2026-06-04T09:51:59+00:00

In my app i have a ListView which dynamically increases by adding 10 items

  • 0

In my app i have a ListView which dynamically increases by adding 10 items everytime on scrolling down. when i click on any item it takes me to a google-map, and to get back to the listView i have a button.

        public void onClick(View arg0) {

            Intent intent = new Intent(MapMarkerActivity.this,
                    FeedListViewActivity.class);
            startActivity(intent);
        }

but my FeedListViewActivity takes some 3-4 secs to load , so during this time if i click the back button on my device the screen flashes for some 0.3 sec and show the google-map(essentially its not going anywhere). now i click the back button on my device it gives me a blank screen and when i click the back button second time it takes me to the listView. the problem is here…now when i try to scroll the listview my app crashes saying:

IndexOutOfBounf index=30 size=10;

so i changed my onclick to:

        public void onClick(View arg0) {
            finish();
        }

now on clicking this button it gives me a blank screen and then i must click the back button of my device to get to the listview from the google-map.

My question is why am i getting that blank screen… I mean why should i click twice back to get back to the listview and why am i getting the indexOutOfBound exception.

The reason i named the question this way is “i want that back button on my device to be blocked when i click on the button(in my app) to go back to the listview which has a 3-4 sec delay”

  • 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-04T09:52:01+00:00Added an answer on June 4, 2026 at 9:52 am

    bpgc if you are coming back from mapview to list view know that time you are used Async task to laod the listview ????

    if do you want block back button press event means just use

    @Override
    public void onBackPressed() {
        // TODO Auto-generated method stub
        super.onBackPressed();
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app which mains view is a listview. Each item consist of
I have a listview control, to this control I am adding rows which contain
In WPF app I have a WCF service which dynamically fills a generic List
I have one listView in my app, which i is use to list the
In WPF app I have a ListView which is connected with ObservableCollection ShQuCollection through
I have an app which uses a Listview to display Lectures. The Lectures are
My situation is like following. I have a App.xaml which includes Style for ListView
I have a problem with listview which list item contain a checkbox. When i
I have an app with a large ListView which is terribly slow so I'm
I have a long ListView which contains a list of actions which my app

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.