Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8623771
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T07:21:47+00:00 2026-06-12T07:21:47+00:00

This is my first post on stackoverflow so hopefully I don’t sound too incompetent.

  • 0

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 http://appliedcoffeetechnology.tumblr.com/post/10657124340. Although I modified the String url … line to the following:
String url = "jdbc:postgresql://192.168.1.101:5556/postgres?user=postgres&password=yeahright";
I followed the other instructions on downloading the JDBC and adding it to the package, I also added the internet permissions line.

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: psql 192.168.1.101 -U postgres -p 5556 -d postgres
However, when running the Android App (on a real device) I get “java.sql.SQLException: No suitable driver” thrown by the conn = DriverManager.getConnection(url) call.

Thank you greatly in advance for your help, and let me know if I can provide any other useful information.

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T07:21:48+00:00Added an answer on June 12, 2026 at 7:21 am

    AFAIK Android doesn’t support JDBC natively. (Update: newer versions do). Honestly, you’re WAY better off running a web service and having your Android app communicate with the DB via web service requests.

    Search SO for “android postgresql”.

    Some related discussions:

    • Android OS and postgreSQL
    • How to create webservice in java using apache tomcat using PostgreSQL
    • Driver JDBC PostgreSQL with Android
    • How can I securely (indirectly) query a postgresql database within android?
    • PostgreSQL JDBC connection fails on Android 4.0
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is my very first post on StackOverflow. Basically, my app starts by checking
this is my first post on stackoverflow. Hopefully I am not disturbing anybody... :)
This is my first post on stackoverflow, so please excuse me if my question
This is my first post in stackoverflow. I want to improve its google pagerank
this is my first post here on stackoverflow and am very impressed by the
This is my first post to stackoverflow, so bear with me. :) I am
This is my first post on stackoverflow, so feel free let me know if
This is my first post on stackoverflow, hello everyone! My first venture into jQuery
this is my first post here on StackOverflow and I'm quite excited about it
This is my first post on stackoverflow.com so I will try to be straightforward.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.