Menu

Connection problem in database for Android

2015-03-16
2015-03-17
  • Dejan Bogicevic

    Dejan Bogicevic - 2015-03-16

    When I wrote in Java works connects to the database, however and the android receive the following error.

    03-16 22:40:59.874: E/Nisam se konektovao(1978): GDS Exception. 335544721. Unable to complete network request to host "192.xxx.xxx.xx".

     
  • Christian Mayer

    Christian Mayer - 2015-03-16

    Looks like your Android-Phone can't connect to the host :)

    I assume your Phone is connected via Wifi ?
    In most cases Wifi-Router are configured to not allow communication between Wifi-Clients. Check if your Phone can connecto to other Services (like FTP, HTTP) on another PC.

     
  • Dejan Bogicevic

    Dejan Bogicevic - 2015-03-17

    Yes, I can't connect to the host :) I am developing android application in eclipse, and I am having trouble connecting to server. (error i am getting is copied above). I am testing my application on android emulator, not on the phone. Do you think the problem is android emulator, and I have to do some alterations while creating object in Android AVD?

     
  • Christian Mayer

    Christian Mayer - 2015-03-17

    Yes, running an emulated Device is very likely the reason, why you can't conntect to your host. I tried that in the early days of porting the jaybird-library and move very quickly to a real device. On a emulated Device you don't have a real connection to your host. For more informations please read this:
    http://developer.android.com/tools/devices/emulator.html#emulatornetworking

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.