If you had first made simple projects then it might help you understand.
Try making each part of you app separate and then combine. When you'll make each part separate you'll encounter bugs debug it and it'll work.
It is the best way as when you make all tasks together it'll be hard to find bug. Nothing else from me.