@SPEEDEVS
Honestly all I can recommend is to search google for code samples which will probably land you on StackOverflow(SO). Code you find on the internet usually never works directly in your app by just copy/paste.
The sample code will at least give you an idea of what to do. And if you decide to use it you'll have to figure out how to get it to work within your own code.
Programming involves a lot of problem solving and patience and also getting to know the tools you use really well like for example, your IDE. I use Android Studio(AS) and "gedit" because it doesn't help me code like AS which keeps me sharp.
Now if you just want to learn how to code I think below is a good place to start. They have free courses by some of which are top schools. You can participate in an online class or just take a course on your own time (self paced).
Here are some free courses I searched for you to get you started. Do keep in mind that most courses are using Android Studio...
Take this course first...
https://www.class-central.com/course/udacity-android-for-beginners-7623
Then take this one..
https://www.class-central.com/course/udacity-android-development-for-beginners-3579
Then this...
https://www.class-central.com/course/udacity-android-basics-make-your-first-app-7278
Now when you scroll down the page there is a "
Related Courses" section which has more courses if you need more.
If you take the 3 courses I listed you will gain a solid foundation for developing your own apps.
Good luck on your new endeavor and hope to see you here in the future on AF teaching and helping others with their apps.