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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:24:05+00:00 2026-06-08T06:24:05+00:00

I am testing my app in the new Android system 4.1 Jelly Bean ,

  • 0

I am testing my app in the new Android system 4.1 Jelly Bean, and my ListFragment is not working properly anymore.

When I click on a list’s row, the function onListItemClick is not call anymore. It use to work juste fine on Android 3.0 and Android 2.x

Does anything change into Android 4.x concerning the ListFragment or the onListItemClick ?

One precision, I am using ‘ListFragment’ from the android-support-v4.jar

 android.support.v4.app.ListFragment

Here is my ListFrangment code :

public class MessagesListFragment extends ListFragment {

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { 
        View view = inflater.inflate(R.layout.pull_to_refresh, null);
        return view;
    }

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
         /* some initialization, working fine */
         /* Settings of the list Adapter*/

    @Override
    public void onListItemClick(ListView l, View v, int position, long id) {
         int messagePosition = 0;
         if(position>0){
              messagePosition = position - 1;
          } else {
              Log.e("MessageListView", "[onListItemClick] position is inferior to zero,"
                + " message position is set to 0");
          }
          String expediteur = DomboxHome.messagesService.messagesArrayList.get(messagePosition).getExpediteur();
          String contenu = DomboxHome.messagesService.messagesArrayList.get(messagePosition).getContenu();
          Log.d("MessageListView","[onListItemClick] click on message position : "+messagePosition);

          ((MessagesActivity)getActivity()).onChooseMessageDetails(expediteur, contenu);

     }
  • 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-08T06:24:06+00:00Added an answer on June 8, 2026 at 6:24 am

    I found the solution,

    The blame was not on android-support-v4.jar but on android-pulltorefresh with is a library to implement pull-to-refresh-list.

    Android pull to refresh list

    The library was not fully compatible with Jelly Bean, but it is already fixed by the team (by the way, thank you to the team ! )

    Bug fixed

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

Sidebar

Related Questions

Im new to android. I have been writing my first app, I testing it
I'm testing a new iPhone app with my end-users and found that a lot
I've been doing alot of testing with my new MVC App and now I'm
I'm currently testing a new version of an app of mine on OSX 10.5
I have a new android app I put on the marketplace a few days
I have been developing an Android app and testing with a 1.5 AVD and
I am working on an Android project in Eclipse and debugging / testing using
I am new to android app development so please any answers would be great
I'm testing my android app on a real device. My app creates a log
The new Android in-app billing (http://developer.android.com/guide/market/billing/billing_testing.html) page says: To test in-app billing in 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.