Code example for ActionBarActivity

Methods: finish, onStop

0
	 
	 
	@Override 
	protected void onStop() { 
		// TODO Auto-generated method stub 
		super.onStop(); 
		this.finish();
	} 
 
 
 
	private class DownloadWebPage extends AsyncTask<String, Void, String> {
    	protected void onPostExecute(String result) {
    		//Parsing article here 
    		 
    		pbArticle.setVisibility(View.GONE);
    		Document test = Jsoup.parse(result);
			Element e = test.getElementById("content");
			int l=test.title().indexOf('|');
			ArticleTitle = test.title().substring(0, l);
			actionBar.setTitle(ArticleTitle);