java-me

How do I calculate a point on a ellipse’s circumference?

吃可爱长大的小学妹 提交于 2019-12-22 11:35:23
问题 I want to plot a point in elliptical curve in J2ME I have values for X,Y,width,height and t. X and Y are the position of the ellipse(according to J2ME) with respect to Canvas and t is angle with respect to the center of ellipse(I have an image representation of the problem , but unfortunate blog is not allowing to insert into discussion :) ) int ePX = (X + width)+ (int) (width * Math.cos(Math.toRadians(t))); int ePY = (Y + height)+ (int) (height * -Math.sin(Math.toRadians(t))); Is this

How to Increase heap size in Java ME?

天涯浪子 提交于 2019-12-22 10:48:25
问题 Is there any way to increase the heap size for Java ME on a device? I'm developing an application for a Nokia N95, but am bumping into memory issues when I try to do image processing of larger images. The phone has plenty of heap space available, but seems to restrict the amount allowed to be used by Java ME to 1MB. 回答1: Short answer: No. Longer answer: Heap-size is hardcoded in device VM. If you are running out of memory you need to split you task into more smaller sub tasks to allow GC to

minimizing a mobile application on exit button press

耗尽温柔 提交于 2019-12-22 08:55:31
问题 I am developing a mobile application using J2ME and LWUIT. Whenever the default exit Button (red in color) is pressed on a phone with symbian OS , I want my application to be minimized and not exited. How do i achieve this? 回答1: According to Nokia documentation at http://library.developer.nokia.com/index.jsp?topic=/Java_Developers_Library/GUID-C5D3E0F5-72B9-4EE7-8BA7-20DE4A538FB8.html you can add the following jad key: Nokia-MIDlet-No-Exit. "Prevents the MIDlet from closing via pressing the

GZIPInputStream implementation for J2ME

冷暖自知 提交于 2019-12-22 06:37:29
问题 Are there any GZIPInputStream implementation for J2ME available. I would prefer an Apache Style License 回答1: IIRC the phoneME project includes an implementation of GZIPInputStream. I'm not sure of the licensing but it might be worth a look. 回答2: TinyLine implementation should be OK also for commercial usages. 回答3: You may want to try: http://code.google.com/p/compress-j2me Library is only 6.5k big. 来源: https://stackoverflow.com/questions/1426154/gzipinputstream-implementation-for-j2me

Adding Java ME platform in NetBeans

谁都会走 提交于 2019-12-22 06:29:34
问题 I installed NetBeans 7.2.1 with JDK 7 and the plug-in - Java ME SDK 3.2 (it has Wireles Toolkit 2.5.2 inside). I try to create new project by clicking File/New Project/Java ME/Mobile Application . Then I click next . In next window the message: Every CLDC project needs to have CLDC compatible SDK/platform/emulator assigned to it. Pressing Install SDK/Platform/Emulator button opens Platform Installation wizard, which allows you to "add platform". I tried clicking Install SDK/Platform/Emulator

Adding Java ME platform in NetBeans

旧巷老猫 提交于 2019-12-22 06:29:06
问题 I installed NetBeans 7.2.1 with JDK 7 and the plug-in - Java ME SDK 3.2 (it has Wireles Toolkit 2.5.2 inside). I try to create new project by clicking File/New Project/Java ME/Mobile Application . Then I click next . In next window the message: Every CLDC project needs to have CLDC compatible SDK/platform/emulator assigned to it. Pressing Install SDK/Platform/Emulator button opens Platform Installation wizard, which allows you to "add platform". I tried clicking Install SDK/Platform/Emulator

encrypt PBEWithMD5AndDES in j2me

旧街凉风 提交于 2019-12-22 01:43:34
问题 i'm triing to get this code to work on j2me (it is working a java program) but not yet in j2me public static String generate(String plaintext, String passphase) throws Exception { try { PBEKeySpec pbeKeySpec = new PBEKeySpec(passphase.toCharArray()); PBEParameterSpec pbeParamSpec; SecretKeyFactory keyFac; // Salt byte[] salt = {(byte) 0xc8, (byte) 0x73, (byte) 0x61, (byte) 0x1d, (byte) 0x1a, (byte) 0xf2, (byte) 0xa8, (byte) 0x99}; // Iteration count int count = 20; // Create PBE parameter set

Google Map is not showing in Blackberry Browser

北慕城南 提交于 2019-12-22 01:42:39
问题 Hello Everyone, I am trying to open Google-Map URL in BlackBerry Browser , but unfortunately it's not showing the Google-Map. The URL is working fine in other OS(Android , Iphone , Windows) here is the URL : https://maps.google.com/maps?saddr=DT4+8DX&daddr=DT6+3JP and here is my Blackberry Code String address = "https://maps.google.com/maps?saddr=DT4+8DX&daddr=DT6+3JP"; Browser.getDefaultSession().displayPage(address); // I also tried with this approach String address = "https://maps.google

What unit-test frameworks would you recommend for J2ME? [closed]

杀马特。学长 韩版系。学妹 提交于 2019-12-21 21:26:30
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . I'm relatively new to J2ME and about to begin my first serious project. My experience in testing isn't too deep either. I'm looking for a unit test framework for J2ME. So far I've seen J2MEUnit, but I don't now how well supported it is. I've seen JavaTest Harness but I don't know if it's not an overkill. Please

J2ME and (open source) applet signing for Mobile Devices (esp. phones) - what can I do?

两盒软妹~` 提交于 2019-12-21 20:18:12
问题 I've just discovered J2ME and I love the possibilities that it presents. I'm currently working on a simple application and I'd like to maybe release it as an open-source project sometime in the future. As part of my research into J2ME and mobile devices, I looked into applet signing. It seems that people who want to create applets for free are caught between and rock and an awful shite-place. Applet signing is extremely expensive and extremely convoluted - and the expense can't be justified