The danger is that you will be sucked into copy/paste programming without understanding it. For e.g. do you know what setContentView does, and when you can call it?
btw, I dont even think there is a lot you need to do to run that code. R class will be generated by B4A with any AdditionalRes. If you import it, you just need a method to call that function.