blackberry

Obtaining cellsite gps location on Blackberry Curve 8520

社会主义新天地 提交于 2019-12-08 14:09:19
问题 Details of my phone: Model:Blackberry Curve 8520 Version :5.0.0.1036 data services :on When I am installing google maps I am able to see the location ,so there is a chance of obtaining the current location using this phone. I am trying to develop an application which will show the current location of the phone,by using the cell site locations because this phone model does not have an in-built GPS device. I am using the following code: BlackBerryCriteria bc=new BlackBerryCriteria(GPSInfo. GPS

Activity indicator and threads blackberry

老子叫甜甜 提交于 2019-12-08 13:48:14
问题 I am working on a project where I download from a file from the web, it is not big only some KBs. My layout is a list with a label below it. When the user updates (checks if new file is available) I want to replace the label with the activity indicator. I download the file in a separate thread to not block the main thread. But I have problems with the activity indicator. I use UiApplication.getUiApplication().invokeLater(//CODE); to remove the label from the manager and add the activity

Blackberry Build Tool

情到浓时终转凉″ 提交于 2019-12-08 13:37:38
问题 Could anyone suggest the best Build Tools for use in the build process when building a blackberry application. Is it just the creation of an ANT project, does that cope with signing etc? Is there a better tool out there? I'd prefer a lightweight Windows solution. I normally use Automated Build Studio -- it can build ANT and it can also compile Java. 回答1: I don't know of any serious alternative to bb-ant-tools. 来源: https://stackoverflow.com/questions/3986739/blackberry-build-tool

Query related to Connection type BIS-B Socket in Blackberry application

强颜欢笑 提交于 2019-12-08 13:37:26
问题 I am trying to establish BIS Socket connection. I am able to establish BIS Http connection from my service provider. I have downloaded one chat application that checks network types supported by my device/service plan which has following list: 1)BIS-Http : OK 2)BIS-SOCKET :OK 3)BES-HTTP : NA 4)BES-SOCKET : NA 5)TCP-HTTP : BAD DNS 6)TCP-SOCKET : TIMED OUT As I know direct TCP is not supported by my service provider. So I would like to use BIS-Socket connection. Can anypne please help me in

Blackberry: creating a custom field to use with VerticalFieldManager to replicate tableview

笑着哭i 提交于 2019-12-08 13:35:28
问题 I don't know if I'm taking the correct route, but I've decided on making a custom field and using it within a verticalfieldmanager. In the custom field I want to add an image on the left, and text on the right. I've just started, but have run into some problems. package mypackage; import net.rim.device.api.ui.DrawStyle; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.Graphics; public class CustomEventField extends Field implements DrawStyle { private String title; private

Sax parser throwing fatal error on Blackberry

大城市里の小女人 提交于 2019-12-08 13:31:34
问题 I get the HTML string from webservice. When I parse on saxparser, it throws fatal error1. Start tag (Image tag) doesn't match with end tag. Then how to get image src? And how to get div id name? Or is there any other parser to parse HTML string? Please help me. 回答1: Parsing HTML is a non-trivial problem, made more difficult on BlackBerry smartphones by the limitations of J2ME. I have a blog posting on leveraging the BrowserField to parse the HTML, which will then give you a DOM document. It

Get GPS location on BlackBerry

本小妞迷上赌 提交于 2019-12-08 13:04:26
问题 I can't read location with this function. When I try to get location information, it always returns altitude 0, longitude 0. void getirGps(){ Criteria myCriteria = new Criteria(); myCriteria.setCostAllowed(false); try { LocationProvider myLocationProvider = LocationProvider.getInstance(myCriteria); try { Location myLocation = myLocationProvider.getLocation(300); seTLatitude(myLocation.getQualifiedCoordinates().getLatitude());// sunlarıda bir public statıc dene.. seTLongitude(myLocation

Blackberry application works in simulator but not device

一笑奈何 提交于 2019-12-08 12:41:40
问题 I read some of the similar posts on this site that deal with what seems to be the same issue and the responses didn't really seem to clarify things for me. My application works fine in the simulator. I believe I'm on Bold 9000 with OS 4.6. The app is signed. My app makes an HTTP call via 3G to fetch an XML result. type is application/xhtml+xml. In the device, it gives no error. it makes no visual sign of error. I tell the try catch to print the results to the screen and I get nothing.

Thick border for rounded button in blackberry

ぃ、小莉子 提交于 2019-12-08 12:18:49
问题 I am getting this... I want the below image I am newbee in Blackberry. I want to give thick border to the rounded button field in my application. Below is my code. I have created a CustomBasicEditField class. protected void paint(Graphics graphics) { int x = (this.getWidth() - getFont().getAdvance(text)) >> 1; int y = (this.getHeight() - getFont().getHeight()) >> 1; graphics.setColor(backgroundColour); graphics.fillRoundRect(0, 0, fieldWidth, fieldHeight, 40, 40); graphics.setColor(border

BlackBerry Please Wait Screen with Time out

我怕爱的太早我们不能终老 提交于 2019-12-08 11:52:39
问题 Hello I am trying to create a please wait screen.This screen will appear when my program requests data from web service and will hide when the process is finished.Also I want to add a time out if request process lasts longer than 90 seconds. can anyone help or show me a guiding example about that matter. public static void showBusyDialog() { try { if (busyDialog == null) { busyDialog = new Dialog("Please Wait", null, null, 0, Bitmap.getPredefinedBitmap(Bitmap.HOURGLASS)); busyDialog