• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem Running MIDlets on BlackBerry

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I use BlackBerry Java Development Environment 4.1 and BlackBerry Emulator 7290 for MIDlets.The MIDlets are not working with these.Even a simple MIdlet like 'Hello world' is not working. I extend MIDlet class for these. Once built and run, the MIDlet should appear as an application in the list in the emulator, but my MIDlet is not at all appearing, though build is successful.Where as a UIApplication is working fine in the same tool. What can be the Problem?
 
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use the 4.2 version of the JDE for development and the 8100 emulator. I have not had any problems running midlets. My project type is set to midlet and my application always appears in the menu after select build/run (ALT+F5).

Do you have the same problem when using a different emulator? If you transfer the application (cod) to a real device does it show up? I could give you my exact steps if you want to try running your project in 4.2.
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I am not sure if my BlackBerry IDE is set to MIDlet mode of project.I am not able to find this parameter in the prefernces.I use 4.1. Can you tell me where to check for that in the IDE?

thanks
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I access the projects settings through the preferences context menu of the project (name node).

Please take a look a the video below.

http://hostj2me.cliqcafe.com/files/2059/bbsetup.wmv

I walk through my project and settings. I am not an expert on Blackberry development. My project involve porting a MIDLet that I created for the E61 using eclipse to the Blackberry JDE targeting the 8100.

You can see more videos in which I use the JDE on mobox.cliqcafe.com or hostj2me.cliqcafe.com.

Excusing the lack of a pop filter and half-sleep narrations, they may still not be helpful because the videos start with the emulator already launched.

I do have version 4.1 installed. If I am able to find the time today I will check to see if I can get the 4.2 project running in 4.1.

Have you had any luck getting help in the RIM (Blackberry) developer forums?
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please give me details as to where can I visit the RIM forum.I am still hung up with the same problem.Is the problem because I am not importing any rim packages but only javax packages?( I am sorry if I am eating your head too much).



Thanks
 
Rashid Mayes
Ranch Hand
Posts: 160
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are a few sites dedicated to RIM development. You should start here http://www.blackberry.com/developers/community/index.shtml.
 
Rao Raghu
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not much help from RIM.I just want to know how do I run a MIDlet in a blackberry JDE.I am giving a sample code here that I am trying to run in the JDE.Please correct mistakes if any.


import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;

public class HelloWorld extends MIDlet implements CommandListener{
private Display display;
private TextBox textbox;
private Command exit;

public void startApp(){
display=Display.getDisplay(this);
exit=new Command("Exit", Command.SCREEN,1);
textbox=new TextBox("Hello World", "MY first MIDlet", 40, 40);
textbox.addCommand(exit);
textbox.setCommandListener(this);
display.setCurrent(textbox);
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
}
public void commandAction(Command choice, Displayable displayable){

if(choice==exit){
destroyApp(false);
notifyDestroyed();
}
}
}


Thanks for bearing with me
 
Everybody! Do the Funky Monkey! Like this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic