Code example for ListFragment

Methods: onContextItemSelected, startActivity

0
					.getLink()); 
			} else { 
				shareIntent.putExtra(Intent.EXTRA_TEXT, Bitly.getShortUrl(news.get((int) info.id)
					.getLink())); 
			} 
			startActivity(Intent.createChooser(shareIntent,
					"Share link with...")); 
		return super.onContextItemSelected(item);
	} 
 
	private void loadFeed() { 
		final NewsList list = this;
		 
		//Toast.makeText(NewsList.this, "Loading..." , Toast.LENGTH_SHORT).show(); 
		pd = ProgressDialog.show(list.getActivity(), "Loading...", "Please wait");
		pd.setCancelable(true);
		pd.setOnCancelListener(new OnCancelListener() {
 
			@Override 
			public void onCancel(DialogInterface arg0) {
				list.getActivity().finish();