@Rodster: you realize that you're just posting messages to say "I have a problem" and you're not taking the time to explain what your problem is. What are you trying to do? What's blocking you? What on earth is PHP doing in there?
And more importantly, what do you expect from us?
longbit wrotethe android app has to establish a direct connection with the database ?
that is wrong on many levels...
I see what you mean, but that's debatable. I can think of a few use cases where connecting from a phone to a database would make sense.