1 To import the formatter, go to the preferences, section Java > Code Style > 2 formatter, then click on import and choose 3 development/ide/eclipse/android-formatting.xml 4 5 To import the import order, to go into Java > Code Style > Organize Import, 6 then click on import and choose development/ide/eclipse/android.importorder 7