blackberry

Blackberry MapView plot coords

我与影子孤独终老i 提交于 2019-12-09 03:52:59
问题 I was wondering if it is possible to plot locations/coords on the MapView class of blackberry. http://www.blackberry.com/developers/docs/5.0.0api/net/rim/blackberry/api/maps/MapView.html In iOS I made an app the drops pins(annotations) on the MKMapView but I can't find something simular for blackberry? Any guidance will be appreciated 回答1: You have basically two options: 1) If you want the map to be embedded within your own application, use the MapField to add a map to your screen and then

BlackBerry app larger than 14mb

大城市里の小女人 提交于 2019-12-09 03:46:29
问题 My BlackBerry app includes some html files, images, jss files. These files are gzip compressed, but the size of this gzip is 18mb. I know that the maximum size of a BlackBerry smartphone application is about 14 mb. How can I work around this limit? I have found this support forums page: The file size limit for wireless downloads It suggest use libraries, someone have any experience with this? 回答1: Can you download resources from a website as they are needed? You could always cache locally

Scale a Bitmap and preserve alpha, on BlackBerry

▼魔方 西西 提交于 2019-12-09 03:46:05
问题 I am trying to scale down a Bitmap that contains transparency. Unfortunately, all three methods I've tried result in white where there should be full transparency. I would like to maintain the transparency. The bitmap I am scaling is always square, so my functions assume that: private static Bitmap scale1(int edge, final Bitmap res) { int factor = edge == 0 ? Fixed32.ONE : Fixed32.div(res.getHeight(), edge); Bitmap scaled = PNGEncodedImage.encode(res). scaleImage32(factor, factor).getBitmap()

Errors running builder 'Faceted Project Validation Builder' on project 'MyProject'

我只是一个虾纸丫 提交于 2019-12-09 02:59:26
问题 I am working on Blackberry webworks, Phonegap framework, Apache Ant and configured them in Eclipse 3.6 with sample index.html. I followed the article Getting Started with PhoneGap BlackBerry WebWorks But I am getting an error message after running the project: "Errors running builder 'Faceted Project Validation Builder' on project 'MyProject' " How do I properly configure the project to support cross-platform? 回答1: Right click on your project >>> Properties >>> Project Facets >>> uncheck

java code corresponding to Newtonsoft.Json.JsonConvert.SerializeObject(Object source,Newtonsoft.Json.JsonSerializerSettings()) in .net?

大城市里の小女人 提交于 2019-12-09 01:57:38
问题 I have a code in .net that serializes a request to the json format ... The code is something like this. var ops = new Newtonsoft.Json.JsonSerializerSettings(); ops.NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore; ops.MissingMemberHandling = Newtonsoft.Json.MissingMemberHandling.Ignore; ops.DefaultValueHandling = Newtonsoft.Json.DefaultValueHandling.Ignore; ops.Converters.Add(new Newtonsoft.Json.Converters.JavaScriptDateTimeConverter()); String strSO = Newtonsoft.Json.JsonConvert

BlackBerry Resolution

空扰寡人 提交于 2019-12-09 01:47:58
问题 Is there any simulator with Resolution 680x800 in BlackBerry? I have searched a lot..But I could not get specific Result.. Site from which I download Simulaors does not provide Resolution information.. http://swdownloads.blackberry.com/Downloads/contactFormPreload.do?code=060AD92489947D410D897474079C1477&dl=7A51789FDE2B3B44C6ED1BA5D80D53CB&check1=A Please Help me... Thanks in Advance 回答1: I do not believe that there is a BlackBerry device with that resolution. Here is a list of some legacy BB

How to delete application data on install and reinstall

旧城冷巷雨未停 提交于 2019-12-09 01:34:56
问题 How to delete application data on install/reinstall application, so I can have a clean working environment on every reinstall ? I mean how to detect that this application has been reinstalled so I can clean the whole persistent store. Thanks. 回答1: In the 5.0 APIs there is a new class called CodeModuleListener which you could use to monitor when your modules are being uninstalled. Prior to 5.0 though, there are no hooks. However, here are a few ideas to think about and/or try: Use the

String Formatting + Blackberry + java

[亡魂溺海] 提交于 2019-12-08 19:00:30
I am facing a bit problem with formatting of string. In my application I need to send an email to a web service.The format of the email need to be like this Name Class Section Position Sam 5 A 1 Joseph 7 C 4 For this I have used /n and /t for line breaks ans spacing. But the real problem is with the 'Name' item. The length of 'name' item varies. Currently my approach is that I am taking a reference string sufficiently long and padding blank spaces in each name string until its length is equal to the base String. The problem that I am facing is that this approach doesn't work fine when I append

Developing photo gallery application

给你一囗甜甜゛ 提交于 2019-12-08 17:29:42
I want to develop a photo gallery in Blackberry. Please give any suggestions about functionality and implementation. Maksym Gontar There are couple things to do: gallery layout variations (table, list, tape) several thumbnail size variations info from file (format, resolution, size, etc) file browser component send mail/publish web etc camera integration Additional features: slide show rating functionality converter functionality synchronization device-device, device-desktop, device-web home screen wallpaper ( available up from 4.7 ) See for code samples: BlackBerry Dev Blog - How to use Table

how to upload the file through http to the website? (Blackberry)

◇◆丶佛笑我妖孽 提交于 2019-12-08 14:09:30
I need to upload a file through http or ftp to the website in blackberry jde. High level view: You open an OutputStream from an HttpConnection and write your data into that output stream. The main problem is going to be choosing which network connection to use (I recommend looking at this, unless you're on OS 5.0 which has a similar feature built in) . As to uploading through FTP that will be somewhat more difficult as there is no support for FTP built into the BlackBerry API instead you'll have to look at using a SocketConnection and implementing part of FTP yourself. Here's some code to get