java-me

How do I make a gif disappear after it's done on blackberry java?

馋奶兔 提交于 2019-12-14 01:56:09
问题 I know how to load in a gif and let it run but how do you make it disappear? Ie. it's on top of another bitmap background and looks like its interacting with the background, I want it to go away after its finished one time through. 回答1: You can set the gif to non-repeating and make the final frame 100% transparent. 来源: https://stackoverflow.com/questions/10354219/how-do-i-make-a-gif-disappear-after-its-done-on-blackberry-java

Dynamically detecting supported configuration/profile/JSRs in Java ME

萝らか妹 提交于 2019-12-13 19:23:17
问题 How do I dynamically detect what profile/configuration is being used and what JSRs are supported? I know that you can dynamically detect supported classes, but I would be surprised if picking a random class that should only be in a particular profile/configuration were the proper way of doing this. 回答1: Use System.getProperty on the "microedition.configuration" and "microedition.profiles" properties. Other JSRs may have defined properties as well. Look at the list of defined property names.

Mp3 Streaming Using Player Switching

白昼怎懂夜的黑 提交于 2019-12-13 18:34:16
问题 I am developing a sample application which can play shoutcast mp3 streams (Developing for S40 platforms, CLDC 1.1, MIDP 2.0). I am using two players switching for continues play back. I used the below logic for streaming. Buffer enough chunks Start Player1 Wait Player1 to finish Start Player2 Wait Player2 to finish repeat... 2 The problem is, listener can feel 1 Second silence (Gap) while switching between players. I would like to know is it possible to stream audio from server without gaps

Desigining a Form in j2me [duplicate]

删除回忆录丶 提交于 2019-12-13 18:08:17
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Desigining a Form in j2me I have created a Form with str 1 and str 2 as StringItem and added them on Form. Then i have added addCommand() method to str1 and str2 and when I click on Next button it should display an alert as Category 1 when clicked on category 1 and When category 2 when clicked on category 2 StringItem. Please suggest a solution What should I write in if loop of Command Action () method so that

Layout a Manager with USE_ALL_HEIGHT style without overriding sublayout() in BlackBerry

左心房为你撑大大i 提交于 2019-12-13 17:48:04
问题 I want to layout three VerticalFieldManager in a screen with NO_VERTICAL_SCROLL . One manager should be aligned to TOP, one should be aligned to BOTTOM and the last one should consume the rest of the height between the former two. Can it be achieved without overriding sublaout() for any Manager? The result I want to achieve is: I layouted this screen with the following code. The problem is that I wasn't able to do it without overriding sublayout(). public class LayoutSandboxScreen extends

Which video formats to use for Java ME in mobile phones?

﹥>﹥吖頭↗ 提交于 2019-12-13 16:47:07
问题 I (or rather some of my students) have a Java ME (the platform everyone still calls J2ME) application that shows videos using JSR-135 and VideoControl. They have created mpeg-1 video files, and it works in the emulator, but not on any of the actual phones they have tried. The call to getControl in Player returns null. I think this is because the phone can't show the video format, but the emulator can. Does that sound right? Is there some format that they should use, in order to maximize the

Java.io.IO.Exception; there is not enough space on the disk while running J2ME application

家住魔仙堡 提交于 2019-12-13 10:54:04
问题 I am getting following Error "Java.io.IO.Exception; there is not enough space on the disk" while running my J2ME Application can any body Please tell me what type of the Error is this and why it is coming. This error is coming when I am uploading the data from mobile to the server. I am not understanding where is the error it is at server side or at mobile side. 回答1: With respect to your question, as per the given information, Java.io.IOException; there is not enough space on the disk is

How can I show dialog box on canvas in J2ME mobile application? [duplicate]

泄露秘密 提交于 2019-12-13 10:39:25
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Is this possible to use lwuit.Dialog with javax.microedition.lcdui.Canvas in wireless toolkit 2.5.2? I created a canvas to write contents when I press mobile keys(for Example if I press "A" it will be written on the screen using paint function). Now I want to show a dialog or PopUp window when I press any key from mobile. Is it possible to show dialog when am using Canvas? say some example, public class Mycanvas

GPS in j2me enabled mobiles

三世轮回 提交于 2019-12-13 09:45:34
问题 Does every j2me enabled mobile have GPS service so that the developer can locate its latitude and longitude? 回答1: Just because a phone can run J2ME it does not mean that it's manufacturer placed a GPS unit in it. As far as I know there are mobiles which can run Java applications but do not have a built in GPS. If you want to find the location of your phone, you can resort to triangulation, where you use cell towers to locate the phone. That being said, this method offers at best, a relatively

ListField's method invalidate does not work

喜你入骨 提交于 2019-12-13 06:40:31
问题 I'm writing a custom list field, but it doesn't not work when i invoke invalidate method. The screen is always empty, while the data of list field is not null or empty! Please help me figure out the problem. Thank you in advance public class FileListField extends ListField implements ListFieldCallback{ private static final Bitmap fileBitmap = Bitmap.getBitmapResource("document.png"); private static final Bitmap dirBitmap = Bitmap.getBitmapResource("emty_folder.png"); private static final