Code example for ActionBarActivity

Methods: finish

0
 
    @Override 
    public boolean onOptionsItemSelected(MenuItem item) {
        switch (item.getItemId()) {
            case android.R.id.home:
                finish(); 
                return true; 
        } 
        return false; 
    } 
 
    @Override 
    public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
 
    } 
 
    private class AsyncHtmlParser extends AsyncTask<String, Void, String> {
 
        @Override 
        protected void onPreExecute() { 
        }