java-me

Do I have to use J2ME for Blackberry development?

冷暖自知 提交于 2019-12-11 05:35:38
问题 I would like to begin developing for the Blackberry platform and, specifically, the Bold and also the Storm device which is coming out soon. Do I need to get into Java and J2ME or can I develop sites in ASP.NET and just keep utilizing the skills I already have? I am completely new to mobile platform development and have no idea what it will take to target these Blackberry devices. I am hoping to continue to use my ASP skills. 回答1: This question might help you. "Creating a mini-site in asp.NET

Can you access sim contacts from J2ME?

萝らか妹 提交于 2019-12-11 05:21:59
问题 Hi I am developing a mobile application where I need to access the phonebook of the users, SIM and phone contacts. Is this possible? 回答1: Depends on the handset, some only let you access phone contacts, some do both phone and sim. Make sure you iterate over all the PIMList s supplied by PIM.listPIMLists() , often this method returns two lists, one of which will be phone, the other will be sim. 回答2: Yeah its possible. Look on this discussion on Nokia forum. Here it will be described clearly

java display input in range [closed]

巧了我就是萌 提交于 2019-12-11 05:05:15
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Hi what was wrong with the following program? As i want it to display user input integer value in a range of 1-10, 11-20,21-30 ... 191-200 ? public class Program { /** * This is the main entry point for the

Problem with UUID and GUID

蓝咒 提交于 2019-12-11 05:01:29
问题 Please don't mark this as duplicate. I have gone through all posts on this topic but couldn't solve my problem. I have an application in J2ME that searches for bluetooth services with a particular UUID: UUID[] uuidSet = { new UID("100000",true) }; int[] attrSet = {0x0100, 0x0003, 0x0004}; int transID = agent.searchServices(attrSet,uuidSet,remoteDevice,this); I have a desktop application in VB.NET using 32feet.NET library that creates a new bluetooth service with a particular GUID. Sub

How to use Soft Keys in Blackberry Application?

两盒软妹~` 提交于 2019-12-11 04:43:24
问题 My application in J2ME, I have just changed Emulator Platform to Blackberry JDE 6.0.0 and Device 9800. After applying above configuration in Netbeans I got MyApp.cod file. I have installed it on my device Blackberry but problem is I used mostly Canvas and I used softkeys for options. Trackball working with Left, UP, Down & Right it's fine. But my soft keys which I provided on canvas it's not working? What I have to make changes in my canvas to use soft keys of blackberry? Here is code ::

Displaying HTML file in Java ME?

99封情书 提交于 2019-12-11 04:18:40
问题 For a newbie to J2ME, I have a basic task: display an HTML file. How can you do this with J2ME? 回答1: You can't display html file in jme, at least you shouldn't. html files can be opened in a browser. 回答2: Emulating an HTML form in a J2ME application But a good way is to try out j2mehtml 回答3: You could try the HTML component in LWUIT 来源: https://stackoverflow.com/questions/3481282/displaying-html-file-in-java-me

Alert pop up with LWUIT

六月ゝ 毕业季﹏ 提交于 2019-12-11 03:46:29
问题 How to create the pop up window using LWUIT? I want to show an alert and that alert automatically dispose after 5 to 10 sec's. How to do this with LWUIT? 回答1: Use this code and show the alert some periodic time. Dialog validDialog = new Dialog("Alert"); validDialog.setScrollable(false); validDialog.setIsScrollVisible(false); validDialog.setTimeout(5000); // set timeout milliseconds TextArea textArea = new TextArea("...."); //pass the alert text here textArea.setFocusable(false); textArea

LWUIT textarea scroll issue

坚强是说给别人听的谎言 提交于 2019-12-11 03:46:08
问题 I have problem with LWUIT scroll. I have a form contain textarea and 20 labels. When it scroll to the bottom, it jump to the top (like cycle). Sorry for my bad english :( This is my code public class ScrollMidlet extends MIDlet { public void startApp() { Display.init(this); Form mainForm = new Form("Scroll issue"); mainForm.setLayout(new BoxLayout(BoxLayout.Y_AXIS)); TextArea textArea = new TextArea("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut

BlackBerry memory usage

风流意气都作罢 提交于 2019-12-11 03:28:39
问题 I am looking for some advice on memory usage on mobile devices, BlackBerry in particular. Using some profiling tools we have calculated a working set size in RAM of 525kb. Problem is we don't really know whether this is acceptable or too high ? Can anyone give any insight into their own experience with memory usage on BlackBerry? What sort of number should we be aiming for? I am also wondering what sort of things we should be looking out for in particular to reduce memory usage. 回答1: 512KB is

Is there a method to change a MIDLet icon once it's downloaded?

假如想象 提交于 2019-12-11 03:18:46
问题 Given that there are many sizes and color depths for different phones (even for the same manufacturer), i would like to have one application for all of them and then, download a proper icon for the phone de app is downloaded into. Is there a way to change the MIDLet icon once the application is downloaded? 回答1: As far as I know there is no way of doing this. You can however force the user to upgrade an app and change the icon then. This can be done in a more user friendly manner without loss