开发者

How to connect to local Mysql server from mobile using j2me

I'm developing mobile application which will be able to download/upload mobile phone book contact from mysql database which is stored on my pc at localhost. I know to how to get contact numbers from/to the mobile phone & save them on the database, but I don't know how to locate to the local Mysql server (i.e http://localhost), I'm using wamp 2.0 for windows & MID开发者_高级运维P 2.0 for mobile.Anyone please help me with the steps or procedure.

Thanking You,

Rittwick Banerjee


If your mysql database is published on localhost only then there is no way your mobile app will be able to connect to it.

My suggestion, you need a ISP that supports mysql and publish your database first, as a start.


there is no such thing as mysql functions in j2me.

only a record store where you can put bytearrays which you can read in a loop not even with some key value scheme.

however you can do http connections so you could build your api that runs on a webserver.

i am really amazed that anybody is really still using j2me :D it is totally buggy, the latest developement kit was shit and didnt even run under 64 bit or linux.

and nowadays no device supports it anymore. only android and ios are relevant imo.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜