java-me

GUI Design in J2ME

天大地大妈咪最大 提交于 2019-12-05 01:40:46
问题 I have been recently digging into Mobile Programming, I practically tried out the J2ME polish GUI framework, Although the GUI made with Polish looked pretty decent, I realized that The User Interface was not what I was looking. I started scourging the web most of all Stack Overflow and formulated certain rules : Java ME is ubiquitous, so this would be a good runtime to start my programming off with. The GUI framework should be such that it should give me full control of drawing on screen at a

Turn on Flash as Light on Blackberry

試著忘記壹切 提交于 2019-12-05 00:12:01
问题 I am new to BlackBerry application development and trying to make a simple application to turn my flash light on as a torch. I know there are several applications that do this already, but I would like to try do it on my own. I have installed eclipse and all the necesary add on to get my development environment running. I have also successfully create the stock standard hello world application. I am however struggling to find out how to do this. I have been reading through the API

Best Portal to buy and sell J2ME apps [closed]

你离开我真会死。 提交于 2019-12-04 22:47:20
问题 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 7 years ago . There are so many app stores for any kind of platform out there, but when I try to find a good store to buy and sell j2me apps, I find some, but no really big one or defacto standard like I was used to have for the palm os (sites like palmgear sell nearly every program ever made for the palm and not only a

How to implement auto-update feature in blackberry

喜你入骨 提交于 2019-12-04 22:29:07
I want to develop code which can be integrated with my blackberry applications. This will check server whether is there any new versions available and if it finds one, then it will automatically download, install or replace the old version, run the newly installed app. The goal is no user input required. The following suggestion works for OTA installations. I'm not sure how BlackBerry World handles this. You can have a service that returns the latest version of the application. The application will call this service at startup(or once a day/week/month - however you want to define this). Then

Google Map is not showing in Blackberry Browser

孤者浪人 提交于 2019-12-04 21:53:02
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.com/maps?saddr=DT4+8DX& address = getUrlEncodedString(address); Browser.getDefaultSession().displayPage

Button Image Problem

元气小坏坏 提交于 2019-12-04 21:08:20
hallo. I want to ask something to you here. I know this may be easy for you, but this may be difficult for me. I learn new J2ME. I want to know the basics of the programing languages this. I have a case like this: class DrawImageCanvas extends Canvas { static Image image; static Image image2; static Image image3; static Image image4; static Image image5; static Image image6; static String string; int count; public void paint(Graphics g) { int width = getWidth(); int height = getHeight(); // Fill the background using black g.setColor(0xefffff); g.fillRect(0, 0, width, height); // Load an image

Displaying Arabic on Device J2ME

烈酒焚心 提交于 2019-12-04 20:27:15
I am using some arabic text in my app. on simulator Arabic Text is diplaying fine. BUT on device it is not displaying Properly. On Simulator it is like مَرْحَبًا that. But on device it is like مرحبا. My need is this one مَرْحَبًا. Create text resources for a MIDP application, and how to load them at run-time. This technique is unicode safe, and so is suitable for all languages. The run-time code is small, fast, and uses relatively little memory. Creating the Text Source اَللّٰهُمَّ اِنِّىْ اَسْئَلُكَ رِزْقًاوَّاسِعًاطَيِّبًامِنْ رِزْقِكَ مَرْحَبًا The process starts with creating a text file.

J2ME/Blackberry - get audio signal amplitude level?

前提是你 提交于 2019-12-04 19:09:25
Is it possible in j2me to measure signal amplitude of audio record made by JSR-135 Player? I know I can access buffer, but then what? Target model Bold 9000, supported formats PCM and AMR. Which format I should use? See also Blackberry Audio Recording Sample Code How To - Record Audio on a BlackBerry smartphone Thank you! Maksym Gontar Get raw PCM signal level Use menu and trackwheel to zoom in/out and move left/right within graph. Audio format: raw 8000 Hz 16 bit mono pcm. Tested on Bold 9000 RIM OS 4.6 Algorythm should work in any mobile, where j2me and pcm is supported, of course

Why can't you have a protected abstract class in Java?

时光毁灭记忆、已成空白 提交于 2019-12-04 18:50:39
问题 I have an abstract class which looks like: abstract class AbstractFoo implements Bar { //Code goes here } However when I try to make AbstractFoo protected I get an error compile time error complaining that it is an illegal modifier. protected abstract class AbstractFoo implements Bar { //Code goes here } Why can't you have a protected abstract class within Java? EDIT: I should probably mention that this is not vanilla Java and is actually Blackberry / J2ME. 回答1: As many others have noted, the

question for terminate app in j2me but it doesnt mean quit from application

冷暖自知 提交于 2019-12-04 17:49:41
i have case in j2me .. i want terminate when app in process execute code. this is my simple code. else if (c == cmdStop) { //command berhenti browser.stop(); } public void stop(){ // No errors int errorCode = 0; // An error occurred errorCode = -1; // Terminate System.exit(errorCode); } the problem is when i try to terminate app, the app still worked or continue execute and ignore function system.exit. still excecute this code private void paintParserScreen(Graphics g){ int w = width; int h = fontHeight+2; int x = 0; int y = height - h; int curLoaded = 0; int value = 0; int iPercent = 0; if