connecting to a remote database sql server 2008 R2 in android
===

I'm doing a android project that my android app has to connect to a remote database to insert the given values from a form so while executing my java code it shows many errors so please help about any new java code that will be useful for my app i'm using mssql server 2008 R2 this server is in cloud
errors---
caused by:java.lang.NullpointerException
at com.project.dbactivity.Oncreate

 