Code example for ActionBarActivity

Methods: getApplicationContext, startActivity

0
        super.onCreate(savedInstanceState); 
        setContentView(R.layout.activity_main); 
    } 
 
    public void onClickFeatureButton(View view) { 
        Intent intent = new Intent(getApplicationContext(), FeatureActivity.class); 
        startActivity(intent); 
    } 
     
} 
Experience pair programming with AI  Get Codota for Java