Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
New Contributor
Posts: 4
Registered: ‎12-15-2011
My Device: Curve 9300
My Carrier: Vodafone

Midlet-Name in the *.jad file of a library.

hello group,

 

i have just taken my fist steps into the blackberry application development by writing a few small test application with the help of the eclipse plugin (eclipse 3.6.2 ; blackberry java plug-in 1.5.0.201110141512).

experimenting a little bit with the different application types (e.g. blackberry application, midlet and library) i stumbled upon something i can't quite understand: if i build an application of type library where does the value of the field midlet-name in the created jad-file come from? the midlet-name is by the way exactly what my library is listed by in the application management list on the device (Curve 9300, OS 6.0.0.570)?

i was trying to change the midlet-name of my libray by adjusting the title field in blackberry_app_descriptor.xml, however, to no success. i even changed my eclipse project name, java package names, Main class name etc. nothing seems to help. any suggestions?

 

thanks,

emma

 

 

Retired
Posts: 1,561
Registered: ‎04-12-2010
My Device: BlackBerry Z10
My Carrier: Bell

Re: Midlet-Name in the *.jad file of a library.

[ Edited ]

Hello Emma,

 

The title within your blackberry_app_descriptor.xml will change what your application is called on the home screen, but not what it shows up as under Application Management.

 

The Application Management name will come from the MIDlet-Name, which is derived from your project name. To modify the name there, you can right-click on your project in the Project Explorer and select Refactor > Rename... to modify the value after a project has been created.

 

You can also modify the .JAD file directly; though there are two caveats:

  1. The .JAD file is re-created each time you build your application with its default values; and
  2. You have to load the application via the .JAD file (i.e. over-the-air download, Javaloader via .JAD, etc.). If you just use JavaLoader directly on the .COD, or you load via .ALX (i.e. Desktop Manager) then the .JAD properties will not be applied.

EDIT: Small addition, with the latest plug-in, Eclipse's Load Project(s) on Device is a .JAD load.

 

Let me know if you have any questions about anything up there, or if refactoring doesn't work out.

 

Erik Oros

BlackBerry Development Advisor


Erik Oros | @WaterlooErik | eoros@blackberry.com | Developer Issue Tracker

If a reply has answered your question, please click Accept as Solution to help other visitors in the future.