Code example for FragmentActivity

Methods: startActivity

0
 
        Intent intent = new Intent(this, sample.activityKlass);
        startActivity(intent);
    } 
 
    @Override 
    public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
        Sample sample = mListAdapter.getItem(position);
 
        SampleDescriptionDialogFragment.show(this, sample.titleResId, sample.descriptionResId);
        return true; 
    } 
 
    private final class SampleListAdapter extends ArrayAdapter<Sample> {
 
        public SampleListAdapter(Context context) {
            super(context, 0);
        } 
 
        @Override 
Contextual code suggestions in your IDE  Get Codota for Java