Location of demo (A12)
I'm trying the demo of location. I have to admit that I am new to the Blackberry development, Eclipse and Java (I know... dangerous combination). I followed the instructions in the PDF several times but the end upward with the same question. I create my local class, then the class LocalScreen. I create the resource of LocalDemo (.rrc & .rrh) and a file _en and _sp files and add the appropriate data in these files. The problem is that I can't seem to link the resources for my class files. I have:
final LocalScreen class extends LocalDemoResource implements screen
but the environment has no idea of what is LocalDemoResource.
My package name is com.rim.samples.local, the class file is called Local.java and the two classes inside are local and LocalScreen. The RRC and HR files are called LocalDemo.rrc and LocalDemo.rrh. I tried to change the LocalDemoResource to LocalDemo, but also Local Tools. None of these work. What is the relationship between the resource and the automatic class? Is there something else I should do that I'm missing (I see nothing in the demo)?
My class also has no idea what BUNDLE_ID, BUNDLE_NAME, CLOSE, in ENGLISH, FIELD_TITLE, FRENCH, GOODBYE, MESSAGE, SPANISH - but I guess that's for the same reason - he does not know the resource.
The demo says "If you called your exampleResource.rrh of sample file .rrh the name of the interface would be exampleResource." -Since my resource files are called LocalDemo.rrc and LocalDemo.rrh, I suppose that "LocalDemoResource" or "LocalDemo" might work, but it doesn't. I don't see 4 resource files in the package Explorer, where they are presented in the demo.
Any help would be appreciated.
What is your environment? you use eclipse + plugin? or eclipse + jde? in any case, a short explanation of how this works: the plugin eclipse to generate an interface or the jde. The name of this file is determined by the name of HR more "Resource". In your case "LocalDemo" + "Resource". This interface is not part of your project, it is hidden. If you use eclipse without the plugin, you need to create a dummy interface. in your class, you publish the interface by implementing LocalDemoResource and declaring a field for the ResourceBundle. Example: resources private ResourceBundle = ResourceBundle.getBundle (BUNDLE_ID, BUNDLE_NAME); Do not be irritated by the BUNDLE_ID and BUNDLE_NAME, they are fields in the interface and you can access because you implemented. You can now use the resources. in the example, it would be resources.getString (CLOSED), for example
Tags: BlackBerry Developers
Similar Questions
-
Hello
I am new to the JDE and of course the development of BlackBerry, I read a laboratory for the use of resources in an application, essentially the strings, so that the laboratory works very well. I started to build my own app and I created two files: DRR and a HR Manager, but it seems that something is missing because my application does not compile. Is there something more than to create RRC and HR files?
Thanks in advance
In the laboratory code, there are two pieces of identification: BUNDLE_ID and BUNDLE_NAME, is the cause of the error, I guess, I can't find where they are defined.
The error message:
D:\Proyectos\Hildebrando\BlackBerry\Demo\com\demo\Principal.Java:41: cannot find symbol
symbol: variable BUNDLE_ID
location: com.demo.PrincipalScreen of the class
private static ResourceBundle _resources is ResourceBundle.getBundle (BUNDLE_ID, BUNDLE_NAME);.Well I finally found the problem, in the laboratory for CityInfoB it does not explain that the class CityInfoScreen must implements CityInfoBResource this class seems to be created automatically by of JDE, in fact I don't know , but it works.
I think that laboratories must be more kind with novice programmers to blackberry .
-
How to save multiple xsd with parent include references?
Hello
Unfortunately, I am a newbie to XDB and it is perhaps a fundamental question. But I don't get solved right now (also Google was not my friend help out me)...
I try to save a set of xsd for XML DB (11g Release 2 11.2.0.1.0) with the data structure:
"Demo" folder:
mainmodel.xsd
types.xsd
"Demo-detail" subfolder contains:
"submodel_a.xsd with < xs: include schemaLocation ="... /types.xsd"/ >
submodel_b.xsd with < xs: include schemaLocation = "submodel_a.xsd" / >
First of all, I created 'demo' and 'demo-detail' records in the XML DB repository using dbms_xdb. CreateFolder.
I then added the xsd as resources for XML DB, for example
declare
v_result boolean;
v_schema xmltype: = xmltype (bfilename ('DEMO', 'types.xsd'), nls_charset_id('ISO-8859-1'));
Start
v_result: = dbms_xdb. CreateResource ('/ demo/types.xsd ', v_schema);
end;
/
Then I registered my types.xsd:
Start
DBMS_XMLSCHEMA. REGISTERSCHEMA)
schemaurl = > 'types.xsd. "
schemadoc = > BFILENAME ('DEMO ','types.xsd ").
CSID = 0 >
);
end;
/
When you try to save submodel_a.xsd the same way, I get the following error:
ORA-31000: resource '... types.xsd' is not a document of schema XDB.
How can I solve this?
Best regards
Matthias
As mentioned Marco, you have to resolve and update the related URL in a local of the schema, just copy prior to registration.
This way, you can keep the original file intact while that correctly register the schema using absolute URLS.
Here is a short example, assuming that all the XSD were loaded as resources in the repository, using the same folder structure:
-It records "types.xsd' to ADDRESS ' / demo/types.xsd.
Start
() dbms_xmlschema.registerSchema
schemaURL => ' / demo/types.xsd '
(, schemaDoc-online xdburitype('/demo/types.xsd')
local-online true
genTypes-online fake
genTables-online fake
);
end;
/
-He gets a local copy of 'submodel_a.xsd' located in ' / demo/details/submodel_a.xsd ' in the repository, fixes and updates include locations, then it saves:
declare
v_schema_url varchar2 (2000): = ' / demo/details/submodel_a.xsd';
XMLType v_schema_doc: = xdburitype (v_schema_url) .getxml ();
Start
for r in)
Select x.*
from xmltable)
' for $i in fn:doc ($url) / Schema / xs: include
return fn:resolve - uri ($i/@schemaLocation, $url)"
from v_schema_url as 'url '.
columns idx for ordinalite
, path of varchar2 (4000) of schema_loc '.'
) x
)
loop
Select updatexml)
v_schema_doc
, ' / Schema / xs: include [' | to_char (r.idx) |] '] / @schemaLocation'
r.schema_loc
, "" xmlns: XS = "http://www.w3.org/2001/XMLSchema" ' ' "
)
in v_schema_doc
Double;
end loop;
dbms_output.put_line (v_schema_doc.getclobval);
() dbms_xmlschema.registerSchema
schemaURL-online v_schema_url
schemaDoc-online v_schema_doc
local-online true
genTypes-online fake
genTables-online fake
);
end;
/
(in this case the XS:include/@schemaLocation will be updated to '... / types.xsd' to ' / demo/types.xsd ')
-
How to compile the package file?
I have an actionscript file, it has a package name, it locate C:\demo directory, as follows:
package demo {}
import flash.display. *;
ABC/public class extends Sprite {}
public void ABC() {}
......
}
}
}
Then I compile code like following the command, but it increase suite above error:
C:\ > mxmlc demo\ABC.as
C:\sdk\frameworks\flex-config.xml loading configuration file
C:\demo\ABC. As: Error: a file in a source path must have the same package structure ", as a package of the definition,"demo ".
Where not right above the command?
Thank you
Set the source path, for example
mxmlc demo\ABC.as -source-path=.
--
Kenneth Kawamoto
-
I gave the demo of location a shot. The application compiles ok in JDE 3.6, but when I deploy in a simulator (the sim card to the AT & T 8100) I get a runtime error:
Eception exception: lack of resources com.rim.samples.device.localizationdemo.LocalizationDemo
Is there a good doc that describes localization works? I see a reference to an interface in the code called 'LocalizationDemoResourc', but I can't at the end where this interface is actually applied.
Any help would be great.
Beren
Don't know what I was doing wrong before. I went and did a cleanup and reconstruction and the app works now. I tried both the plugin eclipse and JDE 4.6. Pretty cool!
Beren
-
I have lightroom 5 bought the downloadable version on the adobe site. months he did the demo version of cc that it has expired. now on lightroom, it says that my develop the module is disabled. Cannot locate the one that I bought on the site to download again because they changed the adobe site drastically.
-
Location JavaME Embedded SDK 8.1 EA3 demos?
Hello.
Where can I download 8.1 package EA3 demos of?
Thank you!
Hello
Normally, ME SDK 8 demos/samples are offered by the center of update SDK ME (-Tools > NetBeans-> Java ME-> Java ME SDK Update Center).
However, for ME SDK 8.1 EA n ° 3 demos/samples are delivered as part of NetBeans plug-ins (download from the same page as the binary ME SDK EA n ° 3). Once the plug-in is installed (see Quick Start Guide), you can access the samples via NetBeans-> file-> new project-> samples-> Java ME SDK 8.1.
Note that not all these samples have been updated to work on the FRDM-K64F yet.
Best,
-Terrence
-
How to stop her popping up the menu demo in EX430 LED TV
Our one year old 40 "Tv LED EX430 start popping up from the Demo menu again and again. Impossible to stop him. You can give me a solution
EX430 people series a model that is not supported in this region. However, the demo mode is a setting that is designed for retailers. I recommend the TV reset factory setting and selecting Home as the location of use during initial installation.
If you don't know how to reset the TV, please contact support center of Sony in your area for extra support specific to the model.
-
How can I control the location where appears a button "dialogue"?
I have multiple loops simultaneously and in each of them, I "buttons of the dialog box." In some cases, "buttons in the dialog box" appear too lapping. Is there anyway that I can control the location where a "dialog box" button on the monitor?
Thank you
Chuck M.
You create your own Subvi that behaves like a dialog box. In this way, you can control the appearance and location. Look through the viewfinder of the example for dialog demo start.
-
problems to download the demo version of Age of Mythology
Hello lesadawne, welcome.
Here would be a possible download location:It is referenced in the link of the thread above, however, if this link is no longer available, you can use it.Thank you!Ryan Thieman
Microsoft Answers Support Engineer
Visit our Microsoft answers feedback Forum and let us know what you think. -
How to stop the demo for Sony KLV-32R412B
How do to stop the demo for Sony KLV - 32R412B.can u please help me
On the remote control, press RETURN, then press HOME and select [Settings] - [System] - [Autostart]. Be sure to select [home] [location]... I found the solution myself
-
(Redirected) Location DIMM on Poweredge R720
Currently, I just get 8 * 8 GB RAM additional and stacked in my Poweredge R720 with single processor already occupying 8 DIMMs with 8 * 8 GB DDR3 RAM. After installed I have just gained only 12 * 8 (DIMM_A1-A12) RAM on my server, while the rest of 4 * 8 RAM incapable of stacked. Their all-Workaround available that I can't is able to compile the rest of the DIMM DiMM_B1-B12 location for my existing processor. Looking for any expert advise to meet this darkness.
Thanks in advance.
Hi robustguy,
Please repost this in the Forum of servers to help.
-
Move the slider to its current location with the Windows Vista speech recognition?
How is a moves the cursor from its current location with the Windows Vista speech recognition?
What is happening with this example? -What are you talking about?
"You must get the cursor in front of the word 'harder' by saying 'Move to harder' and then say 'open quote', then move it to the end of the strongest with 'move after harder' and then 'close quote.' »
Vista speech recognition
http://www.ExtremeTech.com/Article2/0, 2845,2109977,00.aspIs there something to this?
"You can move the cursor anywhere on the screen and tell your mouse to"Click". This, together with the mousegrid. Say:
MOUSEGRID. "
Transcript of speech recognition demo Windows
http://www.Microsoft.com/enable/demos/windowsvista/trans_speech.aspx -
Demo GPS project provided with JDE.
-Are there no analysis and no discussion about this, so that I can well understand how the code works?
-How to test it on a Simulator?
Check this developer Doc.
http://NA.BlackBerry.com/eng/deliverables/8105/BlackBerry_Java_Development_Environment-4.7.0-us.PDF
In your Simulator, choose simulate-> GPS location.
-
How can I find files stored in multiple locations on my hard drive?
I have very few programs installed on my hard drive but I still have issues with disk space was too small. I suspect that I have music or photos that are duplicated on my hard drive and I would like to find a way to locate and remove these files.
Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup
How to remove and delete the folder Windows.old on Vista or Windows 7
http://www.kodyaz.com/articles/delete-Windows-old-removal.aspx=============================================
If that does not free enough space then you must move data to others
Media (such as other hard disks/partitions, CDs, DVDs or USB drives) and/or
uninstall programs that you do not use.------------------------
It will show you how disk space is being used.
WinDirStat - free - use to make sure you know what is too much space.
http://WinDirStat.info/-Free - TreeSize tells you where precious space has gone to
http://www.Jam-software.com/treesize_free/JDiskReport
http://www.jgoodies.com/freeware/JDiskReport/index.html===================================================
Malicious software could play a role:
If you need search malware here's my recommendations - they will allow you to
scrutiny and the withdrawal without ending up with a load of spyware programs running
resident who can cause as many questions as the malware and may be more difficult to detect as the
cause.No one program cannot be used to detect and remove any malware. Added that often easy
to detect malicious software often comes with a much harder to detect and remove the payload. Then
its best to be thorough than paying the high price later now too. Check with them to one
extreme overkill point and then run the cleaning only when you are sure that the system is clean.It can be made repeatedly in Mode safe - F8 tap that you start, however, you must also run
the regular windows when you can.TDSSKiller.exe. - Download the desktop - so go ahead and right-click on it - RUN AS ADMIN
It will display all the infections in the report after you run - if it will not run changed the name of
TDSSKiller.exe to tdsskiller.com. If she finds something or not does not mean that you should not
check with the other methods below.
http://support.Kaspersky.com/viruses/solutions?QID=208280684Download malwarebytes and scan with it, run MRT and add Prevx to be sure that he is gone.
(If Rootkits run UnHackMe)Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Malwarebytes - free
http://www.Malwarebytes.org/Run the malware removal tool from Microsoft
Start - type in the search box-> find MRT top - right on - click RUN AS ADMIN.
You should get this tool and its updates via Windows updates - if necessary, you can
Download it here.Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
(Then run MRT as shown above.)Microsoft Malicious - 32-bit removal tool
http://www.Microsoft.com/downloads/details.aspx?FamilyId=AD724AE0-E72D-4F54-9AB3-75B8EB148356&displaylang=enMicrosoft Malicious removal tool - 64 bit
http://www.Microsoft.com/downloads/details.aspx?FamilyId=585D2BDE-367F-495e-94E7-6349F4EFFC74&displaylang=enalso install Prevx to be sure that it is all gone.
Download - SAVE - go to where you put it-right on - click RUN AS ADMIN
Prevx - Home - free - small, fast, exceptional CLOUD protection, working with others
security programs. It is a single scanner, VERY EFFICIENT, if it finds something to come back
here or use Google to see how to remove.
http://www.prevx.com/ <-->-->
http://info.prevx.com/downloadcsi.asp <-->-->Choice of PCmag editor - Prevx-
http://www.PCMag.com/Article2/0, 2817,2346862,00.aspTry the demo version of Hitman Pro:
Hitman Pro is a second scanner reviews, designed to save your computer from malicious software
(viruses, Trojans, rootkits, etc.). who infected your computer despite safe
what you have done (such as antivirus, firewall, etc.).
http://www.SurfRight.nl/en/hitmanpro--------------------------------------------------------
If necessary here are some free online scanners to help the
http://www.eset.com/onlinescan/
New Vista and Windows 7 version
http://OneCare.live.com/site/en-us/Center/whatsnew.htmOriginal version
http://OneCare.live.com/site/en-us/default.htmhttp://www.Kaspersky.com/virusscanner
Other tests free online
http://www.Google.com/search?hl=en&source=HP&q=antivirus+free+online+scan&AQ=f&OQ=&AQI=G1--------------------------------------------------------
After the removal of malicious programs:
Also follow these steps for the General corruption of cleaning and repair/replace damaged/missing
system files.Start - type this in the search box-> find COMMAND at the top and RIGHT CLICK – RUN AS ADMIN
Enter this at the command prompt - sfc/scannow
How to fix the system files of Windows 7 with the System File Checker
http://www.SevenForums.com/tutorials/1538-SFC-SCANNOW-Command-System-File-Checker.htmlHow to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
generates in Windows Vista cbs.log
http://support.Microsoft.com/kb/928228Also run CheckDisk, so we cannot exclude as much as possible of the corruption.
How to run check disk in Windows 7
http://www.SevenForums.com/tutorials/433-disk-check.html-----------------------------------------------------------------------
If we find Rootkits use this thread and other suggestions. (Run UnHackMe)
======================================
If necessary AFTER THAT you are sure that the machine is clean of any malware.
How to do a repair installation to repair Windows 7
http://www.SevenForums.com/tutorials/3413-repair-install.html======================================
Here are several free utilities to check duplicates and they all have their advantages
and methods. Make sure that you have backups before deleting all files.Auslogics Duplicate File Finder is the MD5 search engine that allows you to find duplicate
files content, without worrying other matching criteria. It would be useful, for example, when two
identical mp3 tracks or video files have different names
http://www.Auslogics.com/en/software/duplicate-file-Finderfind and delete the duplicate - free
http://www.easyduplicatefinder.com/
Versions Installer and PortableSearch files in doubles or similar - even binary - free
http://www.Joerg-Rosenthal.com/en/antitwin/quickly find all the files in a folder and its subfolders - free duplicate
http://www.Mindgems.com/products/fast-duplicate-file-Finder/fast-duplicate-file-Finder-about.htmDuplicate File Finder - Smart Port Forwarding - TCP Port Scanner - TCP Port Tunnel - multi-minuterie-free
http://www.brooksyounce.com/Duplicate File Finder software (pictures, mp3, iTunes)
http://www.Moleskinsoft.com/I hope this helps.
Maybe you are looking for
-
My imac is 5 years old and slowing down, just increased memory 6gbs but still slow
My Imac is 5 years old and I just increased the memory to 6 GB, but still slow - I have the "Tune Up my MAC" on my computer but do not know if I have to use it. Need help with slow or anything I can do to get moving a little faster, suggestions, any
-
Dear Sir I'll have my HP 7510 for a few weeks now. The installation went smoothly, everything has worked, I've been a very happy customer, wanted to post a few nice comments to! Last week I wanted to print 20 pages, front and back, all of a sudden th
-
Since I installed OSx El Capitan, I had intermittent problems with the USB ports to connect to my HP LaserJet printer. I first thought that the older printer was not compatible with the new OSx software, so I've just upgraded to a new HP LaserJet Pro
-
Hello I use Analogtodigital.Vi to convert the pulse of the sequences in digital.signals.I am able to get the representation of digital waveforms of impulses. But how to count the number of 1 is present in the converted digital waveform. I want to cou
-
HP 3520: HP 3520 while a printer print BLACK No.
OK, I searched all the advice and done all the usual stuff to get the printer to print black ink. I have replaced the cartridge, cleaned the heads (several times) has aligned the print heads. Nothing at all. All kinds of print tests had no black.