midlet

How do you organize your code in a j2me project?

喜欢而已 提交于 2019-12-03 20:43:55
Sorry if what I'm about to ask you is a silly question, but since I'm taking my first steps into j2me I have to do it. I know that you can have multiple screens in a single MIDlet, but that doesn't seem to be a good idea when you're going to have a considerable number of screens(more than 10) as it would end up in a complete mess. So here's the question(not sure if possible), how do you usually organize your code in a j2me project? Or do you put everything inside a single MIDlet or do you separate your code into different MIDlets, one per screen, as we usually do in web or desktop applications

How to make a J2ME application run in Background?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-03 13:00:05
问题 I have a written a J2ME application which uses Bluetooth and search a file within the peer mobile and download it. I would like to make my application run in background , whenever I get a call , or message and later resume after few seconds , Has anybody worked on this please share your experience . Is there any way to run a Midlet in background ? 回答1: to set a j2me app to the background use the following in your midlet class: Display.getDisplay (this).setCurrent (null); to get the screen

How to make a J2ME application run in Background?

痞子三分冷 提交于 2019-12-03 03:16:50
I have a written a J2ME application which uses Bluetooth and search a file within the peer mobile and download it. I would like to make my application run in background , whenever I get a call , or message and later resume after few seconds , Has anybody worked on this please share your experience . Is there any way to run a Midlet in background ? to set a j2me app to the background use the following in your midlet class: Display.getDisplay (this).setCurrent (null); to get the screen back use the following: Display.getDisplay (this).setCurrent (myCanvas); Where myCanvas is your canvas

Processing chunked encoded HTTP POST requests in python (or generic CGI under apache)

混江龙づ霸主 提交于 2019-11-28 11:32:48
I have a j2me client that would post some chunked encoded data to a webserver. I'd like to process the data in python. The script is being run as a CGI one, but apparently apache will refuse a chunked encoded post request to a CGI script. As far as I could see mod_python, WSGI and FastCGI are no go too. I'd like to know if there is a way to have a python script process this kind of input. I'm open to any suggestion (e.g. a confoguration setting in apache2 that would assemble the chunks, a standalone python server that would do the same, etc.) I did quite a bit of googling and didn't find