How to manually change the jad arguments

Hi all

I have a file .jad with the following line:

MIDlet-1: myApp,com/myApp/images/icon.png,test_arg

, where 'test_arg' is a string I want to get back on my method (String [] args) principal.

I use Eclipse. I try to write "test_arg" on the field "argument Application" on the BlackBerry Application descriptor. After that, I build the project and install it using a real device using OTA, and I get the argument successfully.

But the problem is: I can't manually change the value of the argument. For example: after generated Eclipse the .jad file, I changed the line above to the following value:

MIDlet-1: myApp,com/myApp/images/icon.png,this_is_a_new_value

After that, I downloaded and install the application by using OTA with the help of a real device, but in my main method, I still continue to retrieve the value 'test_arg '! Only it will update the value if I change on eclipse (using the field "argument Application" on the BlackBerry Application descriptor) before you build the project. But... If is not possible to change the value, then why we MIDlet-1 line on the .jad file? Or is it possible?

Feel free for any suggestions or comments.

The arguments are integrated in the COD, so change them after that in the JAD file will have no effect.

This article can help you with the addition of a custom in your JAD file property/string.

Read the attributes of a JAD file programmatically

http://supportforums.BlackBerry.com/T5/testing-and-deployment/programmatically-read-the-attributes-o...

Tags: BlackBerry Developers

Similar Questions

  • How to manually change the ports for HTTP on the server vCenter Server

    Hello Experts,

    We have Windows Server 2008 SP2 machine where we v5.1 installed with other SSO components, inventory services, vCenter Server and Update Manager.

    So we went from SSO, the inventory services and vCenter Server fine however, vCenter Server has stopped working. While we were to modernize SSO, the service could not start after the upgrade and the recd suite error "Service VMware KDC service could start.". So, we found the article on the VMware site that said port 88 to cause the problem. To find out more by using the netstat command, we found vpxd.exe used port 88. That is why, we stopped this service and proceeded to the upgrade of the SSO. The upgrade is complete following the inventory service and vCenter Server. While we were upgrading vCenter Server, we found that port 88 was used for HTTP communication.

    So we wasted on the use of the port. The upgrade has been completed successfully, however, we can not connect to vCenter server using vSphere Client version 5.1 or 5.5. We even tried to start the VMware VirtualCenter server using the services.msc console and it failed.

    So we assume the port changes happened during upgrade of the SSO meets the HTTP port by vCenter server usage. We need help on how to manually change the ports for HTTP on the vCenter server.

    Suggestions forward. This problem is with the production servers.

    Thank you

    Karan

    This has been resolved... port has been changed manually and works very well.

  • How to manually change the catalog has / B and invalidate the cache of formhandler

    Hello

    How to manually change the catalog has / B, as when doing JIU there are active or not active catalog, a catalog of make us changes and deploy the project, it will automatically do that.

    I want to do the same to my formhandler, I was wondering how should I do? There should be a manager class that will handle this, I want to know what call class.method and other changes needed to be made.

    Thanks in advance

    FormHandler appeal:

    void switchDS() {}
    SDS SwitchingDataSource is getProductCatalog () .getDataSource ();.
    sds.prepareSwitch ();
    sds.performSwitch ();
    getProductCatalog () .invalidateCache ();

    }

    Peace
    Shaik

  • Captivate 5 - How to manually change the type of legend (style)

    I want a caption style different to some of the legends of text on a slide. How can I manually change the style of a text of the legend, for example Popup Adobe Adobe red, without changing all the text captions in the slide. In other words, I want to manually cancel the caption style to default text on some legends but not others. Style Manager object changes all the text captions, not what I need. (It was very easy to do in version 4, but can't find where to do it in version 5)

    Hello Jay,

    Just change using the Properties Inspector. There will be a sign more in front of the indication of the style, to indicate that this object has a different style to the default style, but that is not a problem at all. You can replace the default style in this way.

    Hope this is clear enough, otherwise please post again.

    Lilybiri

  • How to manually change the DNS zone files?

    I'm running OS X version 10.11.2 (El Capitan) and using App Server version 5.0.15 on a Mac Mini.

    I need to change the DNS Zone files manually because the DNS Server App Manager does not provide a U / I in order to add some elements (such as adding a delegation, etc.).  I use TextWrangler (5.0.2) as editor-in-Chief.

    I found an old post on how to do this here, but the information listed it seems obsolete.

    I was able to find the zone files to:

    / Library/server/name

    as:

    CBI .

    When I try to save or overwrite the db. files, or try to save all the files in that directory, I get an error indicating that:

    "Save the authenticated for this file failed (error application code: 20004).

    Since a window Terminal, if I go to that directory and type:

    Echo hello > temp.txt

    I get:

    Permission denied

    I am logged in using an administrator account.

    Before editing the db. files, I turned off the DNS in the App Server, then exit the server application server.

    What should I do to manually update the db. files?

    These files are protected from root.  You need to elevate your permissions to be able to change them.

    Probably you use a text editor like vi, nano or pico command line.  sudo vi/path/to/file for example.

    Back up the files first to protect against error.  In addition, be aware that Apple can run on some of your changes if you change the.app areas.

    Reid

    Apple Consultants Network

    Author of "El Capitan Server" - Foundation Services: available exclusively in Apple iBooks Store

    Author of "El Capitan Server - Collaboration & control": available exclusively in Apple iBooks Store

    Author of books of Yosemite server and server Mavericks

  • How to manually change the false cpInQuizScope

    Hey everybody!

    Is it possible that I can use javascript or something to change cpInQuizScope false?

    I want to exclude the first two quiz questions ReturnToQuiz.  In this way, ReturntoQuiz does not send the user to these questions when they don't get their right.

    I have 6 Captivate.

    Micky

    I think you will find that it is a READ ONLY system variables.  You can't manipulate.

  • Manually change the brightness on the display screen.

    How to change the brightness when the blue Fn key don't decrease the screen brightness but don't don't increase the brightness of the screen.  How to manually change the brightness of the screen without the keyboard shortcut keys (they do not work)?

    Depends on the brand and model of your laptop. Did you install drivers from the manufacturer, or done it with XP (assuming that you do not have XP) pre-installed. For example, on my Gateway laptop, Fn + F8 lights up the screen, and then if I press it again, it fades. Or with keys Fn + I can brighten it gradually, and Fn + darkens it gradually.

    You can figure out or dim the monitor in the video control panel (again, this depends on the manufacturer of card or portable video). Right-click on your desktop and choose Properties. Then go to settings, advanced and then (probably) the video card/chipset that is installed. Somewhere there may be settings to adjust the brightness or gamma of the display. Without knowing your material, I can't say for sure, but it would be the starting point.

    SC Tom
    -There is no such thing as TMI if you request technical support.

  • How can I change the ORDER of my 5 email accounts to my default at the top

    How can I change the order of my 5 email accounts to my default at the top? Currently using any option to e-mail browser (Chrome Firfox IE) sends using one upstairs that is one that I never use. I specifically put by default in the settings option and figure that he took over the top NOT the default. This question never used to cultures upward, but since a recent update for Thunderbird, he chooses the top of the list only Preferred not on the list.
    Thank you I could delete the account then add it to the bottom (tedious), but there must be a way for a) restore order and b) to stop the email add on picking at the top

    Two things.

    You have defined the default value in the menu (alt + T) tools > account settings > outgoing (SMTP) Server?

    Second, try this add-on https://addons.mozilla.org/en-US/thunderbird/addon/manually-sort-folders/?src=ss

  • How can I change the sequence of displayed in Thunderbird mail accounts?

    I need to set up a laptop computer to take on the go. How can I change the sequence (list) of e-mail accounts in the vertical pane to match my office?

    Install this add-on.
    https://addons.Mozilla.org/en-us/Thunderbird/addon/manually-sort-folders/

  • How can I change the batteries in the remote control Stor.E TV?

    How can I change the batteries in the remote control Stor.E TV?

    Thank you very much
    See all ;)

    Everything must be described in the manuals.
    In any case I'm happy you found out how this should be done only. ;)

  • How can I change the settings Windows XP Pro so it stops completely rather than go into sleep mode?

    I run Windows XP Pro and am fed up with my PC, switch to 'sleep' mode when I told him to stop.  How can I change the settings so it stops completely instead of sleep mode? Please do not assume that I know computers - a complete manual would be better. Thank you very much.

    Hello Cosmicbbb,

    Thank you for your message.  If you want to withdraw your option set to the option "Turn off computer", you can make the following registry edit.
    Click Start > click Run > type regedit and press "Enter."
    Navigate to:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ACPI\Parameters.
    Right-click in the empty space in the right pane and select new | DWORD value.
    Attribute value name
    Then, double-click attributes
    Make sure hexadecimal is selected by breaking 70
    Click OK, close the registry editor and restart.
    Now when you choose to stop the computer in the start menu in XP, you will not be able to choose the day before by accident.
    Change the settings of the REGISTRY can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the REGISTRY settings configuration can be solved. Changes to these settings are at your own risk.
    Please let us know if it did or did not help to solve your problem.
    See you soon

    Engineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.

  • Photosmart HP 6520: lost my photosmart 6520 by manually changing the server address

    Hello
    My printer is connected wireless and prints well by AirPrint and when I send it jobs by email, but after successfully scanning to e-mail several times it suddenly wouldn't connect to the Internet, which gives an error message. Tried to turn it works several times. Leva help on the forum and follow-up of boards to manually change the DNS server to 8.8.8.8 and 8.8.4.4 another server. This resulted in my losing access to my printer via his IP on my browser so I can't undo my actions and my printer always gives the error message when I ask him to scan to e-mail. All other functions work.
    Help, please. Thank you

    Hey @Kybosh,

    Welcome to the Forum from HP Support.

    I understand that you are having connectivity problems with your HP Photosmart e-all-in-one 6520, printer.  I want to help you with this.

    I'm surprised that a manual DNS has interfered with your setup - I think generally it does the opposite and enhances connectivity.  In any case, do not despair!   I have some suggestions that can restore the features of your printer.

    I recommend a fresh start by restoring the default settings of your printer to avoid any persistent configuration problem.  Here's how:

    • Front panel of the printer, press the key
    • Touch tools
    • Touch Restore Factory Defaults
    • * Note that this will reset your settings wireless and webservices.  If you have an address custom ePrint it is deleted permanently.  Click here for more information about setting up a custom address ePrint.

    With your restored default settings, continue on as indicated:

    • Touch the wireless icon ()
    • Run the Wireless Setup Wizard and reconnect to your network (SSID)
    • Enter the wireless password if prompted
    • Once you have created a wireless connectivity, reactivate your webservices/ePrint feature (essential for the use of scan to e-mail)
    • Tap the icon of webservices ()
    • Enable Web services and press OK to enable your printer will automatically update
    • Once completed, it will print a page of information.  If you are looking to complete an ePrint installation, it will be useful later - click here for more information.

    Now, if all goes well you can rebuild your Setup email scan:

    • Tap the scan icon
    • Tap the scan to E-mail
    • Enter your personal email address
    • Retrieve the PIN code of your Inbox
    • Enter the PIN on your requested to complete printer installation

    The above restore the functionality you were missing?

    Please let me know the result of your troubleshooting by responding to this post.  If I helped you to solve the problem, feel free to give me a virtual h.o.t. by clicking on the 'Thumbs Up' icon below.

    Please post in the Forum of HP's Support and have a great day!

  • I have a compaq q1859 monitor how can I change the language of the menu of Spanish to English

    I have acompaq q1859 monitor, how do I change the menu language

    Hello

    Please find the web link below check page 4-4 will help you for the language setting.

    http://h10032.www1.HP.com/CTG/manual/c01712465.PDF

  • How can I change the thumbnail image of a music file (song.wma)

    When you use the media player, a thumbnail image has been placed on all the music files (example: song.mp3, song.wma & song.m4a). I want to manually change the thumbnail images on these files.

    How can I change the thumbnail image of a music file (song.wma)?

    Hi ksquare2,

    See the following information about your question:

    http://Windows.Microsoft.com/en-us/Windows7/add-or-change-album-art-in-Windows-Media-Player

    I hope this helps!

  • How can I change the password of the wireless router?

    Original title: change password

    Hello, I need help to change my password wireless internet please. I'm not very computer saavy, so I would appreciate simple instructions, please. I have a regular computer, I don't have a modem, a wireless router, access to, (husbands), a printer, my laptop? the cable company, son-in-law has compressed & PS3.  The problem is my stepson is autistic and mentally not mature enough to be on the internet and he knows the password. How can I change the password to the wireless internet? Then I'll also have to change it on printer, phone, ect... Or y at - it an easier way to keep, before taking any electronics away from him? Thanks :)  WeigeSS

    Go to http://whatismyipaddress.com/ and copy your IP address. Then open a webbrowser and paste the IP copied into the address bar. You must now enter your username and password (most often, it is not a WiFi password, but that this service provider you have given - it could be written on the contract or manual). Now, everything depends on what type of router you have. Usually, there is a security link or password somewhere on the screen. Click on it and then you can change the password.

    If you need further help, feel free to respond.

Maybe you are looking for