Postgresql db acessed from Android 2.2 device
Posted: Fri May 11, 2012 1:01 pm
I´m trying without sucess to conect from an android 2.2 device ( connected with wifi in the local network) into a postgresql 8.2 database , both in the same local network. Is it possible with LiveCode 5.5 trial license? Has anyone already done that? I used the example code in a single Button screen :
on mouseUp
put revOpenDatabase("postgresql","192.169.0.200","caixa","postgres","1234") into dbID
if dbID is not a number then
answer "there is a problem "&dbID with "Ok"
else
answer "You are connected" with "Ok"
end if
put "SELECT * from bancos" into dbSQL
put revDataFromQuery(, , dbID, dbSQL) into theData
answer theData
end mouseUp
....and have no answer . I' ve compiled it for windows plataform and it worked fine.
Any suggestions?
on mouseUp
put revOpenDatabase("postgresql","192.169.0.200","caixa","postgres","1234") into dbID
if dbID is not a number then
answer "there is a problem "&dbID with "Ok"
else
answer "You are connected" with "Ok"
end if
put "SELECT * from bancos" into dbSQL
put revDataFromQuery(, , dbID, dbSQL) into theData
answer theData
end mouseUp
....and have no answer . I' ve compiled it for windows plataform and it worked fine.
Any suggestions?