Code example for Constructor

Methods: newInstance

0
			} else { 
				clazz = Class.forName("com.badlogic.gdx.backends.android.AndroidInput");
			} 
			 
			Constructor<?> constructor = clazz.getConstructor(Application.class, Context.class, Object.class, AndroidApplicationConfiguration.class);
			input = (AndroidInput)constructor.newInstance(activity, context, view, config);
			return input;
		} catch(Exception e) {
			throw new RuntimeException("Couldn't construct AndroidInput, this should never happen", e);
		} 
	} 
}