1 | initial version |
You can try THIS example from github.
Take the whole code and try to run it on your machine.
If it work, than try to find the difference from your code to the Github code.
don't forget to look carefully on the manifest and the activity XML files.
Let me know if it work or not.