Source:
public static void initApp( Object context, final String applicationId, final String secretKey, final String version ) { if( isAndroid() && context == null ) throw new IllegalArgumentException( ExceptionMessage.NULL_CONTEXT ); if( applicationId == null || applicationId.equals( "" ) ) throw new IllegalArgumentException( ExceptionMessage.NULL_APPLICATION_ID ); if( secretKey == null || secretKey.equals( "" ) ) throw new IllegalArgumentException( ExceptionMessage.NULL_SECRET_KEY ); if( version == null || version.equals( "" ) ) throw new IllegalArgumentException( ExceptionMessage.NULL_VERSION ); HeadersManager.cleanHeaders(); MessageWriter.addTypeWriter( BackendlessUser.class, new BackendlessUserWriter() ); MessageWriter.addTypeWriter( Double.class, new DoubleWriter() ); ObjectFactories.addArgumentObjectFactory( BackendlessUser.class.getName(), new BackendlessUserFactory() ); prefs.onCreate( context ); prefs.initPreferences( applicationId, secretKey, version ); if( isAndroid ) { Context appContext = ( (Context) context ).getApplicationContext(); UserTokenStorageFactory.instance().init( appContext ); UserIdStorageFactory.instance().init( appContext ); } if( isCodeRunner() ) return; String userToken = UserTokenStorageFactory.instance().getStorage().get(); if( userToken != null && !userToken.equals( "" ) ) HeadersManager.getInstance().addHeader( HeadersManager.HeadersEnum.USER_TOKEN_KEY, userToken ); if( isAndroid && LocationTracker.getInstance() == null ) { Intent intent = new Intent( ( (Context) context ).getApplicationContext(), LocationTracker.class ); ( (Context) context ).getApplicationContext().startService( intent ); } }

Target:
public static void initApp( Object context, final String applicationId, final String secretKey, final String version ) { if( isAndroid() && context == null ) throw new IllegalArgumentException( ExceptionMessage.NULL_CONTEXT ); if( applicationId == null || applicationId.equals( "" ) ) throw new IllegalArgumentException( ExceptionMessage.NULL_APPLICATION_ID ); if( secretKey == null || secretKey.equals( "" ) ) throw new IllegalArgumentException( ExceptionMessage.NULL_SECRET_KEY ); if( version == null || version.equals( "" ) ) throw new IllegalArgumentException( ExceptionMessage.NULL_VERSION ); HeadersManager.cleanHeaders(); MessageWriter.addTypeWriter( BackendlessUser.class, new BackendlessUserWriter() ); MessageWriter.addTypeWriter( Double.class, new DoubleWriter() ); ObjectFactories.addArgumentObjectFactory( BackendlessUser.class.getName(), new BackendlessUserFactory() ); ContextHandler.setContext( context ); prefs.onCreate( context ); prefs.initPreferences( applicationId, secretKey, version ); if( isAndroid ) { Context appContext = ( (Context) context ).getApplicationContext(); UserTokenStorageFactory.instance().init( appContext ); UserIdStorageFactory.instance().init( appContext ); } if( isCodeRunner() ) return; String userToken = UserTokenStorageFactory.instance().getStorage().get(); if( userToken != null && !userToken.equals( "" ) ) HeadersManager.getInstance().addHeader( HeadersManager.HeadersEnum.USER_TOKEN_KEY, userToken ); if( isAndroid && LocationTracker.getInstance() == null ) { Intent intent = new Intent( ( (Context) context ).getApplicationContext(), LocationTracker.class ); ( (Context) context ).getApplicationContext().startService( intent ); } }