Code example for PendingIntent.CanceledException

Methods: printStackTrace

0
			pendingIntent = PendingIntent.getService(this, 0, serviceIntent, 0);
			try { 
				pendingIntent.send();
			} catch (CanceledException e) {
				// TODO Auto-generated catch block 
				e.printStackTrace();
			} 
			Log.v(LOG_TAG, "ProviderLogin.java start service ...");
 
			Intent i = new Intent(this, ProviderMainLobby.class);
			startActivity(i);
 
		} else { 
			//sign-in failed. pop up alert message. 
			AlertDialog alertDialog = new AlertDialog.Builder(this).create();
			alertDialog.setTitle("Sign-In Failed");
			alertDialog.setMessage("Email & Password mismatch.");
			alertDialog.setButton("Continue",
					new DialogInterface.OnClickListener() {
						public void onClick(DialogInterface d, int i) {
							username.setText("");