Code example for DialogFragment

Methods: startActivity

0
			sbuilder.append(". Vote pour ce camion aussi dans l'appli Steammm'y #swto");
			Intent sendIntent = new Intent();
			sendIntent.setAction(Intent.ACTION_SEND);
			sendIntent.putExtra(Intent.EXTRA_TEXT, sbuilder.toString());
			sendIntent.setType("text/plain");
			startActivity(sendIntent);
		} else if (v == bVote) {
			truck.addVote();
			bVote.setEnabled(false);
		} 
 
	} 
 
	@Override 
	public void onDestroyView() { 
		super.onDestroyView(); 
		if (cancelListener != null) {
			this.cancelListener.onCancel();
		} 
	}