java-me

Split text in J2ME

一世执手 提交于 2019-12-01 05:12:07
问题 I'm creating an application that is supposed to read text from mySql database using a get method. Once it gets data elements from the database as string, it's supposed to split the string and create a list using the string however the split() method does not seem to work here. J2ME says cannot find method split() - what should I do? My code is below: /* assuming the string (String dataString) has already been read from the database and equals one,two three i.e String dataString = "one,two

Blackberry - change latitude and longitude on the device to test app

雨燕双飞 提交于 2019-12-01 02:20:16
I want to test my app on the device. Is it possible to hard code the latitude and longitude values somewhere in the device settings so the app reads those instead of the current location? I want to test my app for different locations other than my current location. Inside GPS mockup If you have access to your application code, you can always create a mockup implementation for LocationProvider so it will read location and speed data from file or RecordStore and return it as a Location , something like public class MockupLocationProvider extends LocationProvider { public MockupLocationProvider()

BlackBerry - How to add content to the Home Screen?

你离开我真会死。 提交于 2019-12-01 01:47:29
In the Windows Mobile world you can create a so-called Today plugin that adds content to the phone's main screen -- the one where you see the number of missed calls, unread sms and upcoming events. Is it possible to do something similar on the BlackBerry? I'd like to show some important info there, so that they are as visible and as easily reachable as possible. Maksym Gontar To provide some information on the Home Screen you can use App Icon: Add a notification icon at the status bar in BlackBerry JDE 4.5.0 alt text http://img691.imageshack.us/img691/6459/icoupdate3.jpg Other thing available

Data in J2ME RecordStore does not persist across sessions

三世轮回 提交于 2019-12-01 01:03:19
I'm building a mobile app with J2ME, and I've found that the data I write into a RecordStore can be accessed while the program is still running but it is lost after quitting and restarting it. No exception is thrown, the data is simply lost. UPDATE: Thanks everyone for your suggestions. I'm using NetBeans on Windows 7. I'm not sure if it is using the WTK version I have previously installed or another one it has installed somewhere else. I've checked my WTK folder for the files Pavel wrote about, but couldn't find them. Now I'm testing the features requiring persistence on my phone and

Issue in PopUpScreen

廉价感情. 提交于 2019-12-01 00:33:20
OnClick of an image I am popping up a screen which has dropdown code, where I have to select the data and pass it to the screen from where it was popped up, after selecting the data from the dropdown the popupscreen should disappear passing the selected ocf value to the firstscreen. I am not able to hide the popupscreen after selection and am not able to pass the data back to the first screen This code will call a popup screen if (field==bitmapField1) { UiApplication.getUiApplication().pushScreen(new MyPopup()); } This is the popped up screen public class MyPopup extends PopupScreen {

Some input files use or override a deprecated API

半世苍凉 提交于 2019-11-30 23:37:44
问题 I just downloaded the new LWUIT 1.5 and when I compiled my project then I saw in the output trace these lines: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. I use Sun Java ME SDK 3.0 So how to make the -Xlint recompilation? 回答1: according to comments in older SO question, "-Xlint in NetBeans is set under project properties, run or compile options" - see details here: Compiling issue in NetBeans There is also a thread at Netbeans

How can I use SqLite with BlackBerry OS 4.5?

荒凉一梦 提交于 2019-11-30 22:24:11
I am currently using Persistent Storage in BlackBerry. I want to use SqLite Database with BlackBerry OS 4.5, but I cannot find any tutorial for that. Can I use SqLite with BlackBerry OS 4.5 or do I need another version of BlackBerry OS? iOSDev There is no SqLite support for BlackBerry OS 4.5. BlackBerry OS 5.0 introduces SqLite support. For more information, see RIM's SQLite overview You have 2 options at your disposal The Sybase solution UltraLiteJ Or McObject solution Perst Sybase sells a DB for BlackBerry 4.1 and higher. 来源: https://stackoverflow.com/questions/1181870/how-can-i-use-sqlite

Designing a mobile web server and client for traffic compression

江枫思渺然 提交于 2019-11-30 22:08:44
I have been a bit confused on how best to go about this. The thing : I'm creating a j2me mobile app that will send compressed data via HTTP to a web server, which then will uncompress the request, fetch the data, compress it and send back to client. One similar solution to this is: T-Booster The Problem : I'm confused on how to send a compressed http request from the client app, what technology to use for the server and how best to go about implementing it. Assuming the server is handing thousands of requests at a time, what will be the effect on the whole application? Comments are well

Android and J2ME

我的未来我决定 提交于 2019-11-30 22:02:34
Can anyone please clear my doubt regarding the query that does Android Programming has anything to do with the J2ME? Does Android Development comes under J2ME Platform as J2ME is used basically for the Mobile Applications and Android is also the same one. Please let me know if anybody is knowing it. Android has nothing to do with J2ME beyond using the core Java language. In fact, the standard library is more reminiscent of Java SE. Like Yann mentioned , j2me is not Android and vice versa, however they use the same language with different VMS. Google basically created their own JVM called

Android bluetooth SDP does not recognize service advertised in JAVAME

孤街醉人 提交于 2019-11-30 21:44:29
I am developing a Bluetooth application for my MSc. End Project. It includes a server implemented in JAVA ME , and a client written in Android . The problem is that Android SDP seems to fail at recognizing the ServiceRecord of my JAVA ME server. If I use the methods BluetoothDevice.getUuids() and BluetoothDevice.fetchUuidsWithSdp() in my client, they return a set of UUIDs , but my service's UUID is nowhere among them, thus I cannot connect to it. This is the code for JAVAME server example: /*IMPORTS*/ public class StackOverFlowServer extends MIDlet { Display mDisplay; Form mForm; LocalDevice