Feature #2893 Create Java sample without layout.xml implemented.