Take the 2-minute tour ×



share|improve this question
Android does not run J2ME apps. –  CommonsWare Sep 29 '10 at 11:41
I have writen a android j2me application and it runs fine. I dont understand what you are saying? –  JPro Sep 29 '10 at 13:00
Which can't be true! Read this: en.wikipedia.org/wiki/… You can only run J2ME application with an installed j2me emulator on the device (tried that myself... nothing I would recommend) –  WarrenFaith Sep 30 '10 at 14:33
add comment

2 Answers

It is quite simple. You just need to do HTTP application/x-url-form-encoded request on the midlet and set request property to HTTP.POST. Then stream form data as bytes. Receive those post variable using a server side language (i used PHP) like $_POST['var'] and in that server script write MySQL query like insert into .. VALUES.. etc.

share|improve this answer
add comment

I don't know if any DB drivers exist for J2ME. If you can't find them just make layer on the server and implement your own protocol for retrieving data via http or sockets

share|improve this answer
add comment

Your Answer


