PostgreSQL JDBC connection fails on Android 4.0 PostgreSQL JDBC connection fails on Android 4.0 postgresql postgresql

PostgreSQL JDBC connection fails on Android 4.0


If at all possible, consider moving away from direct JDBC on your android device. It's inefficient in terms of round trips, etc, and isn't robust in the face of unreliable connections.

See How can I securely (indirectly) query a postgresql database within android? .


Most likely you will find the answer here:

06-10 17:35:51.043: E/AndroidRuntime(798): Caused by: java.lang.NullPointerException06-10 17:35:51.043: E/AndroidRuntime(798):      at com.belonogov.connectjdbc.ConnectJDBCActivity$CustomDrawableView.<init>(ConnectJDBCActivity.java:81)06-10 17:35:51.043: E/AndroidRuntime(798):      at com.belonogov.connectjdbc.ConnectJDBCActivity.onCreate(ConnectJDBCActivity.java:27)

This means: Lookup the class ConnectJDBCActivity.java, line 81 and look what reference might be null.