Well, it looks like you have a NullPointerException on line 16 of MainActivity. What are the values of every variable on that line when the code is running?