Code example for ListFragment

Methods: registerForContextMenu

0
 
        // Get the listview 
        listView = (ListView) view.findViewById(android.R.id.list);
        listView.setAdapter(notificationListAdapter = new NotificationListAdapter(context, null,
                layoutInflater, SessionKeeper.getProfileData().getId()));
        registerForContextMenu(listView);
 
    } 
 
    @Override 
    public void reload() { 
 
        new AsyncRefresh().execute(sharedPreferences
                .getString(Constants.SP_BL_PROFILE_CHECKSUM, ""));
 
    } 
 
    @Override 
    public Menu prepareOptionsMenu(Menu menu) {
        return menu;
    }