blackberry

Delete Persistent Store data when App is uninstalled/deleted

本秂侑毒 提交于 2020-02-02 12:59:11
问题 I have a BlackBerry application that starts (App load) with a Registration screen when the App is first installed. Later, the App will load with the home screen. Registration screen only appears on first load. I am achieving this by storing a boolean value in PersistentStore . If the value exists, then Registration screen will not appear. PersistentStoreHelper.persistentHashtable.put("flagged",Boolean.TRUE); PersistentStoreHelper.persistentObject.commit(); UiApplication.getUiApplication()

Multiline labelfield

自古美人都是妖i 提交于 2020-02-02 07:35:46
问题 I must show a string that can or not be large enough to not fit in one line in all devices, I want labelfield control to automatically show remaining text in a "new line" after the original one, I mean like... auomatic carret return if the string cannot be showed in a single line, all mobile OS I have tried do this, but I cannot make BB OS to work, it just truncates my string whenever it likes and it's very annoying. Thank you 回答1: One way to do this is put your HorizontalFieldManager that

How to make auto start application in blackberry

↘锁芯ラ 提交于 2020-01-28 02:26:31
问题 I don't know how make my application as auto start application.That is my expectation is,After simulator loads it should not open normal main screen which consist of contacts icon,message icons. it should directly run my application. 回答1: Try project->properties->BlackBerry Project Properties->Application tab->Auto-run on startup See BlackBerryForums.com - Running a Java App on Startup 回答2: Here's another link related to the subject matter: http://www.blackberry.com/knowledgecenterpublic

Tunnel Failed, BlackBerry Curve 8900

泄露秘密 提交于 2020-01-25 10:34:05
问题 I have a MIDlet that sends TCP messages over the network to a server residing on the same internal network. Whenever I try to connect using this line: StreamConnection writeSock = (StreamConnection) Connector.open("socket://" + serverIp + ":" + serverPort, Connector.READ_WRITE); I get an error saying Tunnel Failed According to netstat, the port on which the server is set to listen is actually open and in listening mode. I printed the IP and Port values from the mobile application and they

blackberry camera Application

本小妞迷上赌 提交于 2020-01-25 10:00:08
问题 I am implementing camera application using then example comes with blackberry plugin for eclipse named "CameraDemo" the problem is that when the screen loses focus It does not display the camera view istead of it shows like this has anybody faced such problem whats the solution? 回答1: This way of taking picture (using the Player and VideoControl.getSnapshot() ) does not work nice on all BB models. I'd even say it works nice only on a narrow set of BB models. So if you are going to use your app

BlackBerry Widget application - GPS location is always 0,0

时光怂恿深爱的人放手 提交于 2020-01-25 08:25:06
问题 I am trying to get the GPS location in a widget application on a blackberry, but the API always returns a latitude and longitude of 0,0. Simulator: storm 2 (9550)/ bold(9700) and OS: 5.0/5.0 IDE:Eclipse the html page code as below: var modeCellsite = 0; var modeAssisted = 1; var modeAutonomous = 2; function locationChanged() { alert("Lat " + blackberry.location.latitude + " Lon " + blackberry.location.longitude + " Time " + blackberry.location.timestamp ); return true; } if ( window

how to send the text message to multiple numbers in blackberry java applications? [duplicate]

邮差的信 提交于 2020-01-25 07:42:21
问题 This question already has answers here : Send multiple SMS on BlackBerry (2 answers) Closed 6 years ago . Send the Text message(SMS) to multiple numbers in blackberry java applications. i tried the program to send the text message with single mobile numbers. how to i do in multiple mobile numbers? This code is i'm using to send the message to multiple mobile number. Its shows the log as NullPointer Exception. package mypackage; import java.io.IOException; import javax.microedition.io

static variables keep values from previous launch

五迷三道 提交于 2020-01-25 04:19:12
问题 My j2me application call destroyApp() and notifyDestroyed() when it wants to be closed when I run it on blackberry, in the second launch the static variables will have the same values they had in previous run. Why they don't get the initial value? How can I make sure the application initialize static variables? 回答1: This discussion at Blackberry support forums suggests that it is a known issue with BlackBerry MIDlets - at least with those using static push registries. Workarounds they suggest

how to manually add simulators in blackberry eclipse?

左心房为你撑大大i 提交于 2020-01-24 15:16:08
问题 Is there any way to add a simulator manually in my eclipse? In android SDK,we have options for selecting various emulators.Likewise,is there any way so that I can choose any one from the various simulators available? 回答1: Yeah, it can do it. Download simulators from RIM's Software Download for Device Simulators page and you can see how to add them from the support forum thread: how to add another simulator to eclipse 回答2: As Ajmal said when you install a simulator it will be added to your

Efficient way of checking if a location is inside a rectangular perimeter?

◇◆丶佛笑我妖孽 提交于 2020-01-24 11:45:08
问题 I'll first introduce the problem: I'm developing an application where I've to show a map field, and overlay markers and lines. However, in BlacBerry OS 5.0, the only MapField available in the API does not provide means to overlay stuff, only show the map at a location. It also provides methods to transform screen coordinates (pixels) to/from WGS84 coordinates. These methods might be computationally expensive. So to paint my own items, I need to extend this class and override its paint()