Reading a config file?

Those of us who have programmed with Java on the server are calibrated at the use of config files - files that contains pairs name / value that can be read at the time of application start. The attributes control the app behaviour. For example, get a file in Directory x Windows and get the same from the directory there on Linux. X and are stored in a configuration file.

I wonder what is the best way to do the same on the BlackBerry phones...  I see a few possibilities:

1. create a config file in the dir folder resources and also to write a class to read in this file.

2. use the JAD file

3. use the resource group?

Suggestions or comments are appreciated.

Thank you

Thanks Deepesh and Simon.

It seems to me that JAD is probably the simplest way - small additional codes needed

http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800708/800646/How_To _...

Tags: BlackBerry Developers

Similar Questions

  • 25 Firefox is unable to read the configuration file on new install

    I try to install Firefox 25.0 on a XP - SP3 machine and receive the error "failed to read the Configuration file. Please contact your system administrator. I use a file to mozilla.cfg that I created and that you have applied to previous versions. The mozillia.cfg file has entries Pref lock, which are formatted as follows:

    lockPref ("Network.protocol - handler.external.shell", false);

    I have read discussions on various forums and the recommended fix seems to be a "clean reinstall. This machine has never installed Firefox, so a clean reinstall is not an option.

    As noted by one side this version of Firefox will be not to read the config on any OS file I tried Win7 or XP, I did a clean reinstall on both of these machines with the same results.

    I appreciate your help with this.

    If it helps, here is the content of my mozilla.cfg and local - settings.js.

    C:\Program Files\Mozilla Firefox\mozilla.cfg

    //
    
    lockPref("security.enable_ssl3", true);
    lockPref("security.default_personal_cert", "Ask Every Time");
    lockPref("network.protocol-handler.external.shell", false);
    lockPref("plugin.disable_full_page_plugin_for_types", "PDF, FDF, XFDF, LSL, LSO, LSS, IQY, RQY, XLK, XLS, XLT, POT PPS, PPT, DOS, DOT, WKS, BAT, PS, EPS, WCH, WCM, WBI, WB3, RTF");
    lockPref("browser.formfill.enable", false);
    lockPref("signon.autofillForms", false);
    lockPref("signon.rememberSignons", false);
    lockPref("dom.disable_window_open_feature.status", true);
    lockPref("dom.disable_window_move_resize", true);
    lockPref("security.enable_tls", true);
    lockPref("dom.disable_window_flip", true);
    lockPref("dom.event.contextmenu.enabled", false);
    lockPref("dom.disable_window_status_change", true);
    lockPref("dom.disable_window_open_feature.status", true);
    lockPref("browser.startup.homepage", "http://intentionally removed");
    lockPref("app.update.enable", false);
    lockPref("extensions.update.enabled", false);
    lockPref("browser.search.update", false);

    C:\Program Files\Mozilla Firefox\defaults\pref\local-settings.js

    pref("general.config.obscure_value", 0);
    pref("general.config.filename", "mozilla.cfg");
    
  • TDMS & comparison of Config files

    Hello

    I'm not really new to the community, because I got a lot of queries that have already been asked before, and I found an answer here, so far. I studied up on top of TDMS (file > Group > Channel) and its conceptual hierarchy seems to be very similar to the configuration files (file > Section > key). Now, I think that it is possible to use the model TDMS for both configuration files apart from measurement results, but I thought I should ask...

    What are the advantages and disadvantages of TDMS Config files (*.ini) vs?

    I have not found so far any form of comparison between the two. I would like to personally exempt accessibility Notepad the file of configuration as a benefit because it would be best to restrict access to the system from unauthorized users settings.

    Yes, I would consider even using PDM to store key/value data because it is designed for streaming time series of data on the disk.

    I think that if you want the human readable config files then INI files are the way to go - especially with some functions in the MGI toolboxes for read/write anything (for example, the clusters as sections) in an INI file.

    If you want to protect the config file then I think I would probably recommend some kind of binary file format - probably something like a SQLite database like that lets you easily look up values. If you want to go further - place the file in a hidden place (for example % ProgramData %) and making a sort of reversible encryption of the file content would help protect content against unauthorized viewing/changes.

    By experience, using the read/write of MGI what it functions of INI files have been the best solution, we have developed with until we decide to consider using a SQLite database. Teh that if you Exchange cluster configuration, he manages to read the fields that are present and uses the default values that you specify if they are not done it is handy when you need to change the cluster in a future version. Certainly flatten LabVIEW functions XML don't do this - if the definition of type changes then I think it returns an error.

  • After 13 updated both the system rebooted and now as he begins to install XP it autorestarts. It will not recover to the last known good config and delivers a message of corrupted config file.

    Any ideas?

    Thank you

    Frank

    You will share exactly what the message of the corrupt config file says?  My crystal ball takes off the second Wednesday of each month.
    If your system reboots continuously, the next time the system reboots, start tapping the F8 key until you see the menu Boot Options Advanced XP.  On the Advanced Boot Options menu, select:
    Disable the automatic restart in the event of system failure
    This will display the error message that you don't see when the system restarts.  This is what Windows is supposed to do when there a failure - it is supposed to automatically restart.  The error you see on the screen has your clues...
    If you do not see the menu Options start Advancded or you do not have to turn it off automatic restart on option system in the list of choices, you need to try again until you do.  Start typing the F8 key earlier and more frequently as your system begins to come alive.  If you miss the window of opportunity F8, you must try again.
    Please provide additional information on your system:
    What is your system brand and model?
    What is your Version of XP and the Service Pack?
    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..
    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)
    The afflicted system has a CD/DVD drive work?
    You have a true bootable XP installation CD (it is not the same as any recovery CD provided with your system)
    ?
    Most of the time (in recent memory) when there is a problem after installing Microsoft updates, the problem is because the computer was somehow afflicted before/when updates have been installed and updates simply bring to the surface a problem that was not evident before.
    If the last thing people remember is to install the updates from MS, it's am understandable reaction in some way involve updates for updating the post problems when things don't work properly afterwards and especially during the next reboot.
    Another reaction is to try to remember all of the updates you have installed and somehow uninstall the updates one of the XP Recovery Console until you find one who is 'responsible '.  Unless you noted all issues of update, it would be more difficult, but not impossible.  It is unlikely that practical or useful advice in most situations, but you can of course try it.
    Security updates sometimes holes patch XP and when security holes are patched (and XP is "tighter"), affliction can no longer do what is done, things to happen are no longer allowed to happen as a result of the strengthening of security, the system has now a new problem (especially when it initializes more) , and it seems that install updates broken system while in fact, it's just a coincidence.
    Another thing that can happen is that the Microsoft updates will change or update certain critical files on the XP system.  Depending on what your software antivirus or antimalware software is, these programs can interpret the new or updated files to day as being a threat or somehow infected and quarantine (effectively delete) files it thinks are wary.
    The next time you restart your system, you'll have some sort of a problem, or you do not start if the files are missing.  Once more, the problem is not with the updates, it's another condition on your system with your antivirus or antimalware programs you beautiful little (they could be aware of what like the new look of Microsoft files).
    You may have seen some or heard talk about some of these kinds of people, but not too intellectually stimulating general or scenarios of error after update:
    NTLDR is missing or corrupt, ntdetect.com is missing or damaged, ntoskrnl.exe is missing or damaged, hal.dll is missing or corrupt, etc.
    These types of errors are usually very easy to fix, but if you don't know what's happening, the temptation is to do a repair installation, or if none of these kinds of things are really necessary, completely reinstall your XP.  I have never done a system restore, a repair install or reinstalled XP in my life to solve any problem (but I did the process for practice).  These things are simply not options with me.
    Given that Microsoft sends many updates on the second Tuesday of each month (they call it "Patch Tuesday"), this means that the or to the second Wednesday of each month there is an increase of 'problems' in the field - in particular the types of problems "my computer does not start after you install the updates from Microsoft.  That day is also known as "exploit Wednesday".
    You can read about it here: http://en.wikipedia.org/wiki/Patch_Tuesday
    It is likely that if you have a problem like this or after the installation of MS updates, someone else has also had the same problem and understood what to do about it.  A problem here, is that no one knows what is your problem.

    Do, or do not. There is no test.

    I need YOUR voice and the points for helpful answers and propose responses. I'm saving for a pony!

  • Jabber-config file update on CUCM 10.5.2

    I am looking to update my jabber file - config.xml and turn on numbering URI.  I know that I need to add this:

    true

    It has now than that:

    UDS true mail

    Couple questions.

    1. How can do a test this locally?  I tried a few different methods and they do not seem to work.  I read somewhere that the jabber config file is not stored locally, is this possible test on version 10?  All of the items that I was referencing are version 9.

    2. once I have it working locally, the best way to download and difficulty would be to connect via the operating system administrator and to download the new config.XML - jabber, overwriting the current one?

    3. to dial the URI, I'm just able to put an email address and hit call, right?  What to do now, and he will not be trying to make a call.

    I think I have everything on the configured backend, just need this piece of jabber fixed test.

    Thanks in advance.

    1 jabber - config.xml file is stored on the PC with the name cachedtftpconfigstore. It started of jabber version 10.6. I suppose now you want to test this locally on 1 machine and if it passes with success then you'll apply it globally. to test a local machine, download the new xml file of jabber-config on TFTP server with jabber-config name - use .xml. now mention this file name in the field of support for cisco on the device of CSF on CUCM configuration page. see this guide for syntax.

    http://www.Cisco.com/c/en/us/TD/docs/voice_ip_comm/Jabber/11_0/CJAB_BK_D...

    See the section "configuration of the group to create.

    2. Yes, you must log into the OS admin page and download the file config.xml - jabber so that it can be distributed on a global scale.

    3. Please consult the guide to successful composition URIs.

    http://www.Cisco.com/c/en/us/TD/docs/voice_ip_comm/Jabber/10_5/CJAB_BK_D...

  • How to remove all occurrences of Yahoo from my "subject: config ' file?"

    Thanks in advance for any help you can offer.

    Somehow, I hijacked by Yahoo yesterday and ends as my default search provider. And, after that, the small magnifying glass where search engines are listed have disappeared. Firefox doesn't have to feel very safe!

    I restored the search "magnifying glass" through "Customize", but I don't want any more 'surprises' Yahoo

    The next four lines are copied from my "subject: config ' file." Are they necessary?

    browser.search.order.US.1;data:text/plain,browser.search.order.US.1=Yahoo
    Browser.Search.Order.2; Yahoo
    browser.contentHandlers.types.0.uri; https://Add.my.Yahoo.com/RSS?URL=%s
    browser.contentHandlers.types.0.title; My Yahoo!

    In addition, these two:

    gecko.handlerService.schemes.mailto.0.uriTemplate; https://compose.mail.Yahoo.com/?to=%s
    gecko.handlerService.schemes.mailto.0.name; Yahoo! Mail

    browser.search.order.US.1;data:text/plain,browser.search.order.US.1=Yahoo > default search engine. This line is necessary, but you can define a different value to replace Yahoo, Google or Bing for example

    Browser.Search.Order.2; Yahoo > if you use the American version of Firefox, this line is not used

    browser.contentHandlers.types.0.title; My Yahoo! > corresponding to the 1st app/site used when you subscribe to a feed

    gecko.handlerService.schemes.mailto.0.uriTemplate; https://compose.mail.Yahoo.com/?to=%s and gecko.handlerService.schemes.mailto.0.name; Yahoo! Mail > these lines define the 1st element in the list that appears when you open a link mailto: Protocol (i.e. an email address)

    To conclude, except the 1st line, Yahoo does not work on your computer, unless you specifically choose to use when a context menu is displayed.

  • Why no Support information about the browser.display.focus_ring_style entry in the config file? Why I can't change the color of the ring update via the config file?

    Currently, using Ver38.
    Used to change the color of focus ring & screws of css styling to help see what link has focus.
    Methods via ' subject: config' to change any focus ring settings are too restrictive.
    Impossible to find info on the entrance of config file of ' browser.display.focus_ring_style.

    This code must be inside the userContent.css file.

  • USB for my iPhone, so it can read a text file

    Hi, I would like to be able to connect a standard USB to my iPhone, so it can read a text file from USB, any suggestions on cable/apps? Thank you, Tony

    Hello. In fact, you can use any USB adapter to connect your iPhone to the computer and transfer text files. Apple recommends the adapter like this http://www.apple.com/shop/product/MD820AM/A/lightning-to-micro-usb-adapter

  • Firefox does not open, but is rather the error message "Unable to read the configuration file." He has worked in the past, but not now.

    Firefox does not open, but is rather the error message "Unable to read the configuration file." He has worked in the past, but not now.

    I REINSTALL 10 TIMES SO DON'T TELL ME THAT!
    I'm piss because I need firefox work again, so I can finish my reseaching in 5 days.


  • "The missing config file corrupt" error message appears

    When I start my laptop, I get the "Missing config file corrupt" message and I can't start windows, it falls needs the original installation cd-rom!

    It seems that I do not have this cd? That I should?

    I don't want to just do a restore from the hard drive that I'll lose everything.

    Any ideas?

    Please, I beg you!

    Hello

    Have you tried booting in safe mode?
    If it is possible, then you can try to use the System Restore tool under Programs Accessories System Tools, you should find.

    Try to roll back the OS to the beginning. Well, if this procedure doesn't help then as said jmatthews you save files on the other computer and reinstall the operating system.

  • LabVIEW allows to read an Excel file to a control and add a checkbox for each line

    As say the topic, I need to use labview to read an excel file and show it in a control, such as mclb; I should add a checkbox for each line then allow me to choose the line I want. What should I do? Thank you very much.

    guiming wrote:

    I can read an Excel file to a spreadsheet, but I have no idea how to do to add a checkbox for each line.

    Sometimes, all you need to do is Google. https://decibel.NI.com/content/docs/doc-25000

    http://www.labviewing.com/check-box-in-multicolumn-ListBox/

  • read several off file lvm 2D arrays

    Hello

    for the acquisition of my data, I join three tables 1 d in a 2D array. I then record several of these paintings in a file of lvm 2D, until she is larger than 500 KB. Here, I got her 'write to measure' express VI. When I'm reading the data, I have a problem:

    "the measure file read" express vi, seems to give only the first 2D table, which is located in the file! Each 2D table contains 75 values for each channel. I checked the content by drag / drop the file in Excel and Notepad. I see then all the tables, I saved in the file and not just the first. I tried to adjust the parameters in the "read the measurement file" VI as well, but nothing seems to help.

    I have attached a sample file of lvm and my VI of reading.

    It would be nice if someone could help it

    Simon

    Hello

    I don't really know which way you want to read the data.

    Do the different 2D picture belong together, which means that table 2 is just a continuation of the first?
    If this is the case, you can select 'Segment Headers' > 'No headers' in VI 'Write to file measure. "

    Then, select "File as read": read generic text file and adjust settings accordingly.

    Use the function 'Now read file' to test the settings.

    In addition, you may need to modify the indexes for the table to Index in your VI.

    However, this method has the obvious drawback of losing the header information.

    Alternatively, you can save the data in a PDM file, instead of a file of lvm. Here the headers are treated better.

    Select 'Header only' in the writing to the file of the measurement. When your then read the data, it will automatically read all the data.
    And you keep at least the first header information.

    If each 2D table should be read separately, you must use a different approach. Please let me know, if this is the case and that I will explain later.

    Kind regards

    Corinne Doppmann

    Technical sales engineer
    National Instruments

  • Detection of folklore in "reading a spreadsheet file.

    Hi people,

    I need help in the detection of expressions of folklore in a "reading a spreadsheet file. I'd like to stop a while loop by plugging the expressions of folklore? the stop condition indicator, but it does not work. For resons design that I can't replace everything in a loop with a for loop and I don't need the while loop. I read something about creating custom detection of expressions of folklore, but I wonder why the builtin work in vi doesn't work and if it is not a simple solution.

    Thank you very much

    hazibuli


  • Find and read the worksheet file target of target folder

    I'm trying to find and read the worksheet file target in the target folder. Help, please. Thank you.

    Build Path VI will solve the problem.

  • Not able to read the text file several times - Bug?

    I open the Refnum to a text file by starting my software and I'll keep the file open until the software works. I read a text file when an event occurs. The problem that I'm facing here is when I read that the file 1st time Lily can't read the text of the file but when I read it to get even empty string only. Could someone help me understand why this happens.

    A race condition?  What's with the two readings at the same time?  Keep the opened file is not a problem, but remember that there is a file pointer.  If you read empty strings, it's probably because you're at the end of the file.  Use Set leader VI to set Position is for the beginning of the file.

Maybe you are looking for

  • Purchase Vista

    I bought your desktop 3 years ago before Vista came out.  I recently bought a laptop that was loaded with Vista.  Do I still need to buy another copy of Vista if I want to upgrade my desktop computer?  Although technically I purshased a copy of Vista

  • Path too Long for the Installation of the software

    I am trying to install a version of the CAD software to one of my PCs employee.  When we run the Setup file, we get an error message too long file path.  The message says that the file path is 99 characters long, but the limit is 93.  This seems like

  • Windows 7 Professional 64 bit and Symantec ver.4 for BACK issues

    Can I get a ver4 download questions to work on Windows 7 or XP? Peter

  • I can't access my creative cloud subscription.

    My programs run as tests and I have to pay for a subscription, can I use it on another system, it's just the current PC, I'm on I can't access it on.

  • POSSIBLE resource web edge SSL - VPN

    Hello!Does anyone know what 'Resource Web' for SSL Portal functionality - VPN Plus is used for?Is it possible to provide full access to the internal perimeter Web servers?Thank you.