String.format unrecognized in the BlackBerry project?

I'm trying to fill a string but String.format (string, string) is not recognized:

"The format of the method (String, String) is not defined for the String type.

Although I use jdk 1.6 and I noticed that, if I open a regular java project this recognized.

someone at - it be able to use it?

http://www.BlackBerry.com/developers/docs/4.2api/Java/lang/string.html

Does not exist. BlackBerry is not regular Java.

Tags: BlackBerry Developers

Similar Questions

  • Could not import the blackberry project

    Hello

    I downloaded a blackberry project open source from github.

    Link: https://github.com/williamrjribeiro/wallpaper-ruler-bb10

    I imported my momentics IDE, but can't compile or build as he founded errors.

    The error is:

    Active entry point is required in the device-cover Configuration. bar - descriptor.xml /WallpaperRuler line 117 problem manifests in BlackBerry App

    The path location type Resource Description
    make: * [Device-Debug] problem error 2 WallpaperRuler C/C++

    I imported correctly? What is going on? How to solve it?

    Thank you

    Hi, I'm looking at the bar file descriptor of the github pages right now and these configurations that displays error message are not there. Here, it's just debugging the device, the device profile, device-liberation and simulator-debug.

    Delete the rest of the descriptor and mommentics.

    To do this in mommentics, make right click any project, select the build configurations-> manage. Remove the device-coverage, coverage of the Simulator and Simulator-profile.

  • Create a list in the blackberry project

    Hey,.

    I want to create a list and fill in the list and then display it on the screen of the blackberry Simulator

    Then you should use Java.

    Try asking your question at http://supportforums.blackberry.com/t5/Java-Development/bd-p/java_dev

  • I can not package for the project when I used the blackberry resource files

    I can't package the project when I used the blackberry resource files.

    Packaging HelloWorl project
    C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\rapc.exe-quiet codename=deliverables\Standard\5.0.0\HelloWorl deliverables\Standard\5.0.0\HelloWorl.rapc-sourceroot=C:\workspace\HelloWorl\.locale_interfaces; C:\workspace\HelloWorl\src; C:\workspace\HelloWorl\res-import=C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\lib\net_rim_api.jar C:\workspace\HelloWorl\bin
    Cannot open the C:\workspace\HelloWorl\bin/com.helloresL.crb/ dir
    Error! : error: auditor failed: C:\eclipse\plugins\net.rim.ejde.componentpack5.0.0_5.0.0.25\components\bin\preverify.exe d C:\DOCUME...
    Packaging project HelloWorl failed (taken in 0,219 seconds)

    I have fixed my problems, I was using a unicode language in windows, so I changed the language for non-unicode format.

  • BUG: Date/Time Format string with %D in the format string crashes LabVIEW

    Do %D in the format string 'Format string DateTime' blocks LabVIEW 2009 SP1, as shown in this code snippet.  Should I use instead of %D %d but an incorrect format string should not crash LabVIEW.

    Fixed in 2010.

  • the entire signed 16-bit string format

    Is there a string of the format specifier 'In String Format', while the result is a string I16?

    My problem is when I use '%d' and the input string is 65535, the result string should be "-1".»

    crossrulz wrote:

    mitulatbati wrote:

    The function entry is a DBL...

    Then use the code of Jeff as an example of what to do.  You have just a double entry instead of a U32, U16.

    In fact, you need two conversions
    What to do with dbl (LabVIEW minute who could bite you one day: Float to int retains sign)

  • Search and replace the string formatting

    Hello

    I try to do a search and replace the formatting of a string.

    In the example, I'm looking for the string 'SUCCESSFUL', but it must also begin by usbflash and some number + PASSED.

    I can't get the format to have a number between 1 and 99. The number of replacements should add up to 6 in this case. I tried with \d for any number, and I also tried [1-99].

    Make a right-click on the function search and replace the string.  There is an option to use regular Expressions.  Then give it a try.

    EDIT: You need to set the entry replace all to TRUE.

  • Microsoft fix - it message 'string input not in the right format. '

    Microsoft fix - it message 'string input not in the right format", I have uninstalled & reinstalled. always the same problem on all fix - its

    Hello

    The following forum would be more suited for this question.

    Microsoft Fix it Center - NOT for general support questions
    http://social.Microsoft.com/forums/en-us/fixitcenter/threads

  • input string was not in the right format, fix it?

    I get this message when you try to download Microsoft Fix It...

    input string was not in the right format.

    How can I fix?  I'm a novis.

    Sincerely,

    Nancy

    If I were you, I wouldn't bother with Microsoft FixIts.

    Why don't ask you a question with an object that describes your problem and give some details about it?  See How to ask a question.
    At a minimum, include the following:

    • What version of Windows you have, including the Service Pack (right click on desktop and select properties)
    • the brand and model of your computer and any other involved material (for example, a printer)
    • a description of your problem in as much detail as you can; There is no charge "by the word" to post questions here
    • the full text of the error without paraphrase messages
    • something unusual happened to your system, shortly before the problem started

    And insofar as this error "input string was not in the correct format?  This seems to be a common problem that Microsoft keep because it creates new tools 'FixIt '.

    There is a support forum for Microsoft FixIt Center in which this right was requested more than 2 years, on September 14, 2010.  The next day, a Microsoft employee answered and said that Microsoft was aware of the problem and that he had set. There are lost then several positions - in the same thread - AUGUST 2011 to September 2012 all reports the same problem... and here, you are as well.

  • Cannot add a bug in the incident handler in the BlackBerry Tablet OS project

    Hello

    I get an exception when you create a project in Flash Builder 4 (flex2/tools/oem/OEMException$ CircularLibraryDependencyException).

    I wanted to add it to the Manager of incidents under the BlackBerry Tablet OS Project (closest to you in the development of the AIR) but I couldn't because a 'Version' is necessary and the only one available in the list is 'unknown '. This field is required, so I can't add the bug

    Thank you

    Fabien

    It's done!

  • Don't see Blackberry point in the new project in VS2008

    Hello

    Here are a few of my machine:

    OS: WinXP Sp2

    VS2008 9.0.21022.8 RTM

    I install vs_plugin.31.exe and BlackBerry Widget SDK Beta 3. MSI. But there is no element of Blackberry in the section of the new project. I watch the video and see that they create the web project there.

    I tried to run a sample as gear of the section of the sample site, but it takes about 15 minutes to show the Simulator and nothing happens except the main screen of the Phone Simulator.

    Help, please...

    Thank you.

    Hello

    Please make sure you have Service Pack 1 installed for Visual Studio.

    In Visual Studio, select 'About' from the Help menu.  You should be able to confirm that the BlackBerry Web plug-in has been implemented correctly, and if SP1 has been installed for the .NET Framework:

    If everything is configured correctly, you should see the project type "BlackBerry" should be included in the left panel of the new project window, and when you select it, you should see the type of project 'BlackBerry Widget' on the right:

    Best wishes

    Adam

  • Convert PMReal taking into consideration the OS string format parameters

    Hi all

    I ran into a problem where I want the members of this community to a thought.

    I have a number in a PMReal and I must appear on a text box in a dialog box created by my plugin. The notation for the decimal character on my machine is set on ',' instead of the usual '.'

    This change is carried forward throughout Indesign of the displayed number but the number I have in the PMReal appears with a '.' in it, IE it does not respect the operating system settings.

    I used AppendNumber of PMString to convert a used as string 'stringnumeric::ToString' of PMReal, but nothing happens the number is displayed with a '.'.

    If someone could guide me in a way wherin I could convert a PMReal to a string representation, which considers the operating system parameters to represent the decimal separator.

    Manan Joshi

    -Effective InDesign solutions-

    MetaDesign Solutions

    http://metadesignsolutions.com/services/InDesign-development.php

    You can use the ITextValue to a RealEditBoxWidget.

    In addition there are some routines in IWidgetUtils, for example FormatUserDecimal().

    If the value is a measure, search for IUnitOfMeasure...

    Dirk

  • Rebuild the Eclipse project

    Hi all!

    I made an app that works very well in the Simulator and I can install it on the device (9300 SV 5.0) and works very well.

    But when I try to install it on a 8520 device and select the .alx Office files show me an error saying that the installation is perhaps not compatible.

    I guess it's normal because the libraries are different and that the files .alx file is located on a folder 'deliverables-> standard-> 5.0.

    I downloaded 4.0 library to Eclipse, but I don't know how to rebuild the application to work with 4.0.

    What should I do?

    TY!

    ------------------------------------------

    Edit: ok, just change the reference of libraries projects and now I have the 5.0 and 4.6 folder (I think that can only exist on the project); but now that a single .alx files.

    Is this normal?

    Edit2: http://supportforums.blackberry.com/t5/Java-Development/What-is-the-proper-format-for-a-single-ALX-f...

    Open the Properties window for your project in eclipse, go to Java Build Path, on the libraries tab, choose Add library, select JRE System Library, then press Next, select another JRE and select the BlackBerry JRE you want in the list and press Finish. When you return to the Java Build Path window, go to the tab order and export, uncheck everything except the library, you need and press OK. Now you should be good to go.

  • Multiple application to the same project

    Hi all

    I wish I had 1 application runs as a service to start and another is a UIApplication to set the variable to the first application. How can I do this in the same project?

    I try to separate two project but when running, I got the below error

    Class 'com.mytest.phone.UserInfo' multiply defined.

    The linker error: "VerifyError" for MyTestSetting_BB

    Error starting MyTestSetting_BB: 'com.mytest.phone.UserInfo' multiply defined class.

    Two projects use UserInfo for storing data persistenly.

    Thanks in advance,

    POJ

    I'll just try to rephrase what Simon and Bika have already said, but otherwise it's maybe a little clearer.

    The BlackBerry smartphone does not load two classes that have the same name.  Of the same name, in other words the package and class name.  If you have a PersistentData class in the com.myorg.testapp1 package, as well as in the com.myorg.testapp2 package, then here is therefore not the same thing, even if the class name is the same.

    However for process objects in PersistentStore, the same class should be used.  So even though the two classes PersistentData in testapp1 and testapp2 were the same, the BlackBerry only would leave one of them extract the data.

    So to store data in PersistentStore which is used by the applications of two (or more), you should use a common (shared) class.  An easy option is to use standard RIM provided classes such as vector and String.  But that can make life a bit difficult.

    The simplest option is to share classes between applications.  This can be done easily in the JDE.

    Step 1: You create a project that is testapp1 and another is testapp2.

    Step 2: Then you create a third project of the library, which provides the object that will be stored in PersistentStore (and of course, this might have any other components shared as well).  Let's say this project is in the com.myorg.shared package.  Then com.myorg.shared we PersistentData class, she object that is persistent.

    Step 3: You are doing the project two testapp dependent on the com.myorg.shared library project, just the dependencies of the project

    Step 4: You import com.myorg.shared. * classes in testapp classes that use data from PersistentStore.

    I presume that you can do this kind of thing in Eclipse, but I don't him did not.

    Once you understand this, then you can create library files that are in independent work spaces, so that you can maintain testapp1, testapp2 and share completely separated.  But is not too far for this explanation.

    But in short, you do not add the same class for two projects, you make sure that the projects share the same class.  To achieve this, have three projects, two applications and a library.

    Hope it makes sense.

  • Impossible to debug the example provided with the SDK projects

    Hey there.
    Just recently I started learning the SDK AE. After reading the first two pages of the Guide to the software development kit, I decided to try to build/debug examples of projects in visual studio.
    I tried with the model project "Skeleton" and with the "Resizer effect" project, but the two I can't seem to make it work.

    I set the environment variable AE_PLUGIN_BUILD_DIR for the correct path, and I also made sure visual studio debug using AfterFX.exe
    However, if I try to launch the visual studio debugging (F5)... nothing happens. After effects opens, but nothing happens after that.

    I checked my output log and... Well well full of messages like:


    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\AudioFilters.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\ProjectConverterHost.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\TransmitHost.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\DisplaySurface.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\FLT.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\RG.dll. Cannot find or open the PDB file.
    There are many more of these erros... basically for each DLL in the \Support Files\ folder.

    At the end of my output log, I have the following:

    < 5060 > < AppVers > < 5 > App Version = Version 13.5.1.1x48

    < 5060 > < AppDirs > < 5 > App Dir = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    The executable < 5060 Dir > < AppDirs > < 5 > = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    Resources < 5060 > < AppDirs > < 5 > Dir = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    Package < 5060 > < AppDirs > < 5 > Dir = C:\Program Files\Adobe\Adobe After Effects CC 2015\Support Files

    < 5060 > < AppDirs > < 5 > Plugin Dir = C:\Program Files\Adobe\Adobe after effects CC Files\Plug-ins 2015\Support

    < 5060 > < AppDirs > < 5 > required Dir = C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\Required

    "AfterFX.exe" (Win32): loaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\aeres1.dll. Cannot find or open the PDB file.

    "AfterFX.exe" (Win32): unloaded "C:\Program Files\Adobe\Adobe after effects CC 2015\Support Files\aeres1.dll.

    The program ' [3244] AfterFX.exe "ended with code 0 (0x0).



    Can someone tell me what I'm missing?

    Well, it is normal that if you launch AE in the debugger, nothing different happens if you launch AE normally. Which means that you must create or load a project and apply your plugin, so you can stop in the debugger (unless you want to catch global initialization, which is made on the loading of the program).

    With regard to the PDB messages in the journal, which is quite ok, as the Adobe dll plugin obviously would not come with debug information.

    The plugins you've compiled are born actually in the correct path? They are available in the menu effects in AE? It is the first thing to check, because when there is not this plugin, debugging is not available :-)

    I interpreted your question so that your .aex files are actually present and visible on EI, you just can't break into the debugger when one of them is used.

    So for your plugin, you must make sure that it contains debug information, otherwise you will not be able to debug.

    Please check the following settings for your project in Visual Studio:

    "C/C++" - "Debug Information Format" value "Program Database"

    "C/C++ - preprocessor"-"Preprocessor Definitions" string contains the "_DEBUG" set

    "C/C++ - Code generation '-'Runtime Library' is defined is ' / MTd ' or ' / MDd" (this is the most common error when unable to debug!)

    ' Linker - debugging - 'generate debugging information' set to 'Yes "".

Maybe you are looking for

  • Stream Podcast shows of new episodes, but feed validators and subscribed itunes do not update

    Hello everyone, I ran a rather strange problem this morning during the release of my latest podcast episode.  When I publish a new episode, it appears in the flow, but it will not appear in itunes.  I know that there is a delay for the itunes store t

  • Mouse and keyboard Microsoft Wireless Comfort 5050

    Mouse and keyboard Microsoft Wireless Comfort 5050 will work with my MAC

  • Dissolve cross won't "dissolve".

    I'm trying to get two clips to fade into one another (see screenshot), but for some reason any cross dissolve doesn't dissolve? Basically, it remains on the first image and then hard cuts to the second as soon as the bar of timeline gets past the tra

  • R Lenovo 61i - lost WinDVD 5.0 image

    Hello users of Lenovo. I unfortunately lost WinDVD 5.0 image of the laptop about a month ago. I tried to do a clean install, but still the application does not install for me. That's when I made use of the lenovo site: Support and downloads. Note: I

  • OfficeJet 4500: Memory to print

    My printer will start printing and not finish. It will print a few lines, then remove the paper. It is as if he has lost his memory for what was supposed to be printed.