//MainActivity.java file
public class MainActivity extends AppCompatActivity {
...
	@Override protected void onCreate(Bundle savedInstanceState) {
	...
		// Alan button
		AlanButton alanButton = findViewById(R.id.alan_button);
		
		// Alan config object
		AlanConfig alanConfig = AlanConfig.builder()
			.setProjectId("")
			.build();
		alanButton.initWithConfig(alanConfig);
	}
}
            

//MainActivity.kt file
class MainActivity : AppCompatActivity() {
...
	override fun onCreate(savedInstanceState: Bundle?) {
	...
	    // Alan config object
		val config = AlanConfig.builder()
			.setProjectId("")
			.build()
		alan_button.initWithConfig(config)
	}
}