Code example for FragmentActivity

Methods: startActivity

        Intent intent = new Intent(this, sample.activityKlass);
    public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
        Sample sample = mListAdapter.getItem(position);
, sample.titleResId, sample.descriptionResId);
        return true; 
    private final class SampleListAdapter extends ArrayAdapter<Sample> {
        public SampleListAdapter(Context context) {
            super(context, 0);
Connect your IDE to all the code out there  Get Codota for Java