Good day Peeps

I need help i had a major project going on,but this two problem i face leave me clueless. I need working examples to get them working.

1: place autocomplete api - I seen google created the api but the code weren't clear on how to apply the api into my customize google maps. 

This is where i attempt on how to use autocomplete. But when i had it ran on my phone the popup didn't work as it promise it would work.

2: snaptoroad api - I had to use this for my major project implementation.

Above is where i tried for snap to road same thing i obtain null pointer exception. I'm really despo for help maybe you guys could help me. 

Any suggestion or tutorial introduction i will greatly appreciate. Thank You.