Note that there are some explanatory texts on larger screens.

plurals
  1. POCan't connect Android to PostgreSQL DB
    primarykey
    data
    text
    <p>This is my first post on stackoverflow so hopefully I don't sound too incompetent. I'm having an issue connecting my Android App to a PostgresDB that I created. I used the code from this tutorial <a href="http://appliedcoffeetechnology.tumblr.com/post/10657124340" rel="nofollow">http://appliedcoffeetechnology.tumblr.com/post/10657124340</a>. Although I modified the String url ... line to the following: <code>String url = "jdbc:postgresql://192.168.1.101:5556/postgres?user=postgres&amp;password=yeahright";</code> I followed the other instructions on downloading the JDBC and adding it to the package, I also added the internet permissions line.</p> <p>I've configured the postgreSQL DB on my Windows 7 machine to allow connections, and even set the incoming connections to "trust" so that the password won't get in the way. I also opened up the 5556 port on the Windows firewall. I can connect to it from my Ubuntu laptop, using the following command: <code>psql 192.168.1.101 -U postgres -p 5556 -d postgres</code> However, when running the Android App (on a real device) I get "java.sql.SQLException: No suitable driver" thrown by the <code>conn = DriverManager.getConnection(url)</code> call.</p> <p>Thank you greatly in advance for your help, and let me know if I can provide any other useful information.</p> <p>Craig Ringer below mentioned a web service app. Originally I was hesitant as I didn't want to add an even steeper incline to my learning curve, but I decided to go with Django, and it has been amazingly simple.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload