ListFragment onListItemClick don't work anymore with Android 4.1 Jelly Bean

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

Here is my ListFrangment code :

public class MessagesListFragment extends ListFragment {

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

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

    public void onListItemClick(ListView l, View v, int position, long id) {
         int messagePosition = 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);



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

I found this error in my apps that has the PullToRefresh Library that dont suppport the new Android 4.1

To fix the problem i use a fork of the library

This library is awesome. Has new PullToRefreshWebView and PullToRefreshGridView and other features like pulltorefresh from bottom (to pull on the bottom of the list) and other thinks like new animations.

Need Your Help

MySQL PDO Check if email exists

mysql pdo rowcount

So I'm stumped on why the function I've made to check if an email already exists in my database doesn't work...maybe someone here can help me! No matter what I do, it returns false and I cannot fig...

How can I add a box-shadow on one side of an element?

css css3 shadow box-shadow

I need to create a box-shadow on some block element, but only (for example) on its right side. The way I do it is to wrap the inner element with box-shadow into an outer one with padding-right and