blackberry

Need help with Java design of Http Requester

試著忘記壹切 提交于 2019-12-11 02:05:43
问题 I am running into a design problem. I have the following (pertinent) classes: class LoginScreen { public login() { httpRequest = factory.createHttpRequest(url, method, this); httpRequest.start(); } public authorize() { httpRequest = factory.createHttpRequest(url, method, this); httpRequest.start(); } public requestSucceeded(){...} public requestFailed(){...} } class HttpRequest extends Thread { LoginScreen screen; ... public HttpRequest(url, method, screen) { this.url = url; this.method =

BlackBerry app for different devices

試著忘記壹切 提交于 2019-12-11 01:53:47
问题 Is it necessary to write different versions of Blackberry applications for different devices? For example, I have an application "MyApp", and I need it to run on different devices: 9700 - MyApp v1 9550 - MyApp v2 Can I write one MyApp for both devices? 回答1: That depends on if you want your application to take advantage of specific properties of the devicies or facilities available with the OS version supported on the device. The 9550, for example, is a touch device while the 9700 isn't. There

How do i keep a caught exception from reporting as uncaught in a blackberry app?

て烟熏妆下的殇ゞ 提交于 2019-12-11 01:41:39
问题 Edit: this applies to simulators only, but i would still like to know if there is a resolution. I have some code in a blackberry application that catches an exception at some point, does some handling in the catch block then rethrows the exception, which is caught higher up on the call stack. However even though i do catch it later on, i still see an error message displayed on the simulator, along with a jvm 104 error in the device logs. Is there something else i need to do to suppress this

Application Details on Blackberry

僤鯓⒐⒋嵵緔 提交于 2019-12-11 01:20:20
问题 I want to develop an application which gets the details of other installed applications on Blackberry. Is there any possibility? 回答1: Yes, you can use CodeModuleGroupManager.loadAll() to get a list of all applications installed on the device. 来源: https://stackoverflow.com/questions/3874315/application-details-on-blackberry

Read JSON data returned by google maps

旧城冷巷雨未停 提交于 2019-12-11 01:02:16
问题 In my app I use the BlackBerry API to get latitude and longitude. I would like to do reverse geocoding using Google maps by creating an http connection. How do I parse the data, and then read a specific element, such as the address? An example URL: http://maps.google.com/maps/geo?json&ll=9.6,73.7 Gives response: { "name": "9.600000,76.760000", "Status": { "code": 200, "request": "geocode" }, "Placemark": [ { "id": "p1", "address": "Kanjirappalli Elikkulam Rd, Kerala, India", "AddressDetails":

How do I style a HTML link without CSS?

老子叫甜甜 提交于 2019-12-11 00:58:53
问题 I need to style links for a Blackberry browser that has disabled CSS. The following is what I try to achieve: <style type="text/css"> a.hover { border:0; } a { text-decoration: none; } </style> Is it even possible, just using html? 回答1: You can only set the color. <body link="XXX" alink="YYY" vlink="ZZZ"> XXX being the color used for links, YYY the color when mouse hovers the link and ZZZ the color for already visited links. Color can be given in hex notation just like with stylesheets

Blackberry - Custom EditField Cursor

半世苍凉 提交于 2019-12-11 00:35:49
问题 I am creating a search box for my BlackBerry project, but it looks like BlackBerry doesn't have an API for creating a single line EditField. I have created a custom field by extending BasicEditField and overriding methods like layout and paint. In the paint function body, I am drawing a rectangle with getPreferredWidth() and getPreferredHeight(). But the cursor shows up at the default top-left position in the EditField. Can anybody tell me how I can draw the cursor where my text is? i.e. in

set header and footer in BlackBerry in VerticalFieldManager

不问归期 提交于 2019-12-10 22:48:22
问题 I searched how to set header and footer in BlackBerry and I found the functions setTitle() and setStatus() . My problem is I have created a class that extends VerticalFieldManager . In VerticalFieldManager , it is not showing me setStatus function as this is function of MainScreen class. 回答1: You're right. A VerticalFieldManager does not allow you to setStatus() directly. It's important to understand the relationship between the classes in the BlackBerry UI framework. First of all, there are

Why this jquery code is not working on blackberry?

Deadly 提交于 2019-12-10 21:27:27
问题 I am developing phonegap app using jquerymobile. but in blackberry 9780 it does not show me alert, my code is document.addEventListener('deviceready', run, false); function run(){ $.getJSON('http://twitter.com/users/usejquery.json?callback=?', function(json){ alert(json.followers_count); // not displaying in blackberry }); } My head part is : <script src="phonegap.js"> </script> <script src="jquery1.6.2.js"> </script> <script src="jquery.mobile1.0b3.js"> It works fine in other mobiles like

How to resolve “This application requires the following module, which is not installed: net_rim_bb_qm_platform”?

时光怂恿深爱的人放手 提交于 2019-12-10 20:29:39
问题 I am testing the BB Application (Beta version) on the simulator. I have run the mds simulator. I have followed this step as well. When i run the mds simulator i am getting this below: <2012-02-23 20:53:58.598 IST>:[47]:<BBM_MDS>:<DEBUG>:<LAYER = BBM, 0 platform ap p controls have been loaded successfully> <2012-02-23 20:53:58.598 IST>:[48]:<BBM_MDS>:<DEBUG>:<LAYER = BBM, Schedule relo ad plugin controls task with interval [86400s]> <2012-02-23 20:53:59.020 IST>:[49]:<BBM_MDS>:<ERROR>:<LAYER =