sdk/src/com/socialize/launcher/EntityLauncher.java
@Override
	public boolean launch(final Activity context, Bundle data) {
		
		if(entityLoaderUtils != null) {
			final SocializeEntityLoader entityLoader = entityLoaderUtils.initEntityLoader();
			
			if(entityLoader != null) {
				
				Object idObj = data.get(Socialize.ENTITY_ID);
				
				if(idObj != null) {
					long id = Long.parseLong(idObj.toString());
					try {
						SocializeSession session = notificationAuthenticator.authenticate(context);
						Entity entity = entitySystem.getEntitySynchronous(session, id);
						return loadEntity(context, entityLoader, entity);
					}
					catch (Exception e) {
						handleError("Failed to load entity", e);
					}
				}
				else {
					handleWarn("No entity id found.  Entity based notification cannot be handled");
				}
			}
			else {
				handleWarn("No entity loader found.  Entity based notification cannot be handled");
			}
		}
		
		return false;
	}
@Override
	public boolean launch(final Activity context, Bundle data) {
		
		if(entityLoaderUtils != null) {
			final SocializeEntityLoader entityLoader = entityLoaderUtils.initEntityLoader();
			
			if(entityLoader != null) {
				
				Object idObj = data.get(Socialize.ENTITY_ID);
				
				if(idObj != null) {
					long id = Long.parseLong(idObj.toString());
					try {
						SocializeSession session = notificationAuthenticator.authenticate(context);
						Entity entity = entitySystem.getEntitySynchronous(session, id);
						return loadEntity(context, entityLoader, entity);
					}
					catch (Exception e) {
						handleError("Failed to load entity", e);
					}
				}
				else {
					handleWarn("No entity id found.  Entity based notification cannot be handled");
				}
			}
			else {
				handleWarn("No entity loader found.  Entity based notification cannot be handled");
			}
		}
		
		return false;
	}
@ Override public boolean launch ( final Activity context , Bundle data ) { if ( entityLoaderUtils != null ) { final SocializeEntityLoader entityLoader = entityLoaderUtils . initEntityLoader ( ) ; if ( entityLoader != null ) { Object idObj = data . get ( Socialize . ENTITY_ID ) ; if ( idObj != null ) { long id = Long . parseLong ( idObj . toString ( ) ) ; try { SocializeSession session = notificationAuthenticator . authenticate ( context ) ; Entity entity = entitySystem . getEntitySynchronous ( session , id ) ; return loadEntity ( context , entityLoader , entity ) ; } catch ( Exception e ) { handleError ( "Failed to load entity" , e ) ; } } else { handleWarn ( "No entity id found.  Entity based notification cannot be handled" ) ; } } else { handleWarn ( "No entity loader found.  Entity based notification cannot be handled" ) ; } } return false ; }
/* (non-Javadoc)
@see com.socialize.launcher.Launcher#launch(android.app.Activity, android.os.Bundle)
/ * ( non - Javadoc )