@Override
	public boolean launch(Activity context, Bundle data) {
		
		if(entityLoaderUtils != null) {
			entityLoaderUtils.initEntityLoader();
		}
		
		// Expect an action id
		Object idObj = data.get(Socialize.ACTION_ID);
		String actionType = data.getString(Socialize.ACTION_TYPE);
		
		if(idObj != null && !StringUtils.isEmpty(actionType)) {
			
			long id = Long.parseLong(idObj.toString());
			
			try {
				ActionType type = ActionType.valueOf(actionType);
				
				SocializeSession session = notificationAuthenticator.authenticate(context);
				SocializeAction action = activitySystem.getAction(session, id, type);
				
				if(action != null) {
					CommentUtils.showCommentView(context, action.getEntity());
					return true;
				}
				else {
					handleWarn("No action found for id [" +
							id +
							"].");
				}
			}
			catch (SocializeException e) {
				handleError("Failed to load entity", e);
			}
		}
		else {
			handleWarn("No action id found.  Action based notification cannot be handled");
		}		
		
		return false;
	}
@Override
	public boolean launch(Activity context, Bundle data) {
		
		if(entityLoaderUtils != null) {
			entityLoaderUtils.initEntityLoader();
		}
		
		
		Object idObj = data.get(Socialize.ACTION_ID);
		String actionType = data.getString(Socialize.ACTION_TYPE);
		
		if(idObj != null && !StringUtils.isEmpty(actionType)) {
			
			long id = Long.parseLong(idObj.toString());
			
			try {
				ActionType type = ActionType.valueOf(actionType);
				
				SocializeSession session = notificationAuthenticator.authenticate(context);
				SocializeAction action = activitySystem.getAction(session, id, type);
				
				if(action != null) {
					CommentUtils.showCommentView(context, action.getEntity());
					return true;
				}
				else {
					handleWarn("No action found for id [" +
							id +
							"].");
				}
			}
			catch (SocializeException e) {
				handleError("Failed to load entity", e);
			}
		}
		else {
			handleWarn("No action id found.  Action based notification cannot be handled");
		}		
		
		return false;
	}
@ Override public boolean launch ( Activity context , Bundle data ) { if ( entityLoaderUtils != null ) { entityLoaderUtils . initEntityLoader ( ) ; } // Expect an action id Object idObj = data . get ( Socialize . ACTION_ID ) ; String actionType = data . getString ( Socialize . ACTION_TYPE ) ; if ( idObj != null && ! StringUtils . isEmpty ( actionType ) ) { long id = Long . parseLong ( idObj . toString ( ) ) ; try { ActionType type = ActionType . valueOf ( actionType ) ; SocializeSession session = notificationAuthenticator . authenticate ( context ) ; SocializeAction action = activitySystem . getAction ( session , id , type ) ; if ( action != null ) { CommentUtils . showCommentView ( context , action . getEntity ( ) ) ; return true ; } else { handleWarn ( "No action found for id [" + id + "]." ) ; } } catch ( SocializeException e ) { handleError ( "Failed to load entity" , e ) ; } } else { handleWarn ( "No action id found.  Action based notification cannot be handled" ) ; } return false ; }
/* (non-Javadoc)
@see com.socialize.launcher.Launcher#launch(android.app.Activity, android.os.Bundle)
/ * ( non - Javadoc )