Android beginners game tutorial with source code ( android memory game)
Since android native applications are made by java, this post already assume that you know java.
In this android beginners game tutorial we are not going to use any 3rd party library. only Java and xml will be used here.
You must have good knowledge with both Java and android project structute to continue successfully in this tutorial. You can find a pretty awesome tutorial about Android basic project structure at kickwe.
Let’s see how we are going to make an android memory game for kids ( image matching) .
# Graphics for kids
# 6 difficulty level
# 2 character set
# Timer for making it challenging.
# background music
The only library we are going to use android support library provided by google. You will find it in build.gradle
The project structure :
Java files (src>main>java>com>roottutor>matches)
For a better project stuctute, we have made them folder wise.
common (all share preferences belongs here. Functions that going to contradict with many other situation)
And without folders :
For the xml, we have created a customview
For java files explanation, please find the source code. I have commented all important functions.
Enjoy devs !!!