Code example for Fragment

Methods: startActivity

0
    } 
 
    @Override 
    public void onItemClick(AdapterView<?> parent, View view, int position, long id)
    { 
        Intent intent = mListView.getTargetIntent(position);
        startActivity(intent);
    } 
 
    @Override 
    public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) {
        mScrollIndex = mListView.getFirstVisiblePosition();
        View v = mListView.getChildAt(0);
        mScrollTop = (v == null) ? 0 : v.getTop();
    } 
 
    @Override 
    public void onScrollStateChanged(AbsListView view, int scrollState) {
    } 
}