02-05-2010 08:22 AM
we are trying to write string to device event log using EventLogger class. we are doing development in VS2008 using BB widgets. following are Code details in .js file
EventLogger.register(BB_CTS, 0x97c9f5f6441d25e5f, EventLogger.VIEWER_STRING);
var logMessage = "Test Event Entry.";
EventLogger.logEvent(0x97c9f5f6441d25e5f, logMessage.getBytes(),level );
The error is - referenceerror; EventLogger is not defined.
Please guide on this with some sample link or code.
Thanks in advance.
02-05-2010 09:00 AM
02-08-2010 04:42 AM - edited 02-08-2010 06:26 AM
We have not written any separate class in Java. We want to use EventLogger class from net.rim.device.api.system.EventLogger.
Currently we have added access to following features (in config.xml)
To use the API do I need to add access to any new feature or is there any other way for acessing above mentioned EventLogger Class.
Thanks in advance.
02-08-2010 09:19 AM
02-10-2010 03:10 AM - edited 02-10-2010 03:19 AM
Hi Tim, Thanks a lot, the URL's are very helpful.
We want to call a REST webservice, the service needs authentication. Currently we are calling a the web service inside ASPX page, using XMLHttpRequest object and setting the authentication values. We are calling this ASPX page inside a HTML page in the blackberry widget project. This all is working fine.
Is this a efficient way of calling a Rest webservice in BB widget. or is there any other solution.?
Is it possible call REST webservice Using Gears HttpRequest object?
02-10-2010 07:52 AM
Using XHR to call your restful web service is a good way to go about it. You can then decide on what is the best result to return from the web service (i.e. XML or JSON)
Both XML and JSON have their pros and cons, but for many forms of data JSON is much more efficient. You can then use a JOSN parser to do a JSON.parse() on the XHR.responseText instead of using the eval() which has some security concerns
02-15-2010 09:34 AM
02-16-2010 08:53 AM
"Resource does not exists" in my experience refers to something missing in your config.xml. I would double check what resources you are using to make sure.