blackberry

Reduce space between 2 buttons in HorizontalFieldManager in BlackBerry

痴心易碎 提交于 2019-12-11 23:53:00
问题 In Blackberry I have created a horizontal field manager and added some buttons of small size to it to display toolbar at the bottom of the screen. But my problem is there is too much space between the 2 buttons. I have to reduce this space between 2 buttons so that I can manage to place at least 6 buttons at the bottom of the screen. I am using the BFmsg.setMargin(305,0,0,40) statement. Following is my code : BFcontacts = new ButtonField("Cnt") { protected void paint(Graphics graphics) { /

Mail Attachment and its Content Transfer Encoding setting (BlackBerry problem)

一个人想着一个人 提交于 2019-12-11 23:49:34
问题 I use a C# code to send some e-mails to different users with mail clients on different platforms: BlackBerry, iPhone, Pc, Mac, etc. Here is the snippet: Attachment attachment = null; if (attachNameFile!=null) { attachment = new Attachment(attachNameFile, new System.Net.Mime.ContentType(attachMimeType)); } SmtpClient smtp = new SmtpClient { Host = this.smtpServer, Port = this.smtpPort, EnableSsl = false, DeliveryMethod = SmtpDeliveryMethod.Network, UseDefaultCredentials = false, Credentials =

Custom editfield not displaying all typed text

倾然丶 夕夏残阳落幕 提交于 2019-12-11 22:14:14
问题 Below class is a textbox field. Can this be modified so that when the textbox is filled with text and user keeps type the text then scrolls ? Whats happening now is that once the textbox is filled with text any subsequent text that is typed is not being displayed. Thanks import net.rim.device.api.ui.Color; import net.rim.device.api.ui.Font; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.component.EditField; public class CustomEditField extends EditField { // private

build an html5 web app to work in BlackBerry using the phonegap build

大憨熊 提交于 2019-12-11 21:26:41
问题 I have developed a html5 jquery mobile application using the phonegap build website. It works fine on Android, iOS and Windows Phone but BlackBerry is not on the list anymore. I have searched on the net and I didn't find anything. Should I give up the BlackBerry version of my mobile app? Is there another way to do it? 回答1: PhoneGap build now only supports iOS, Android and Windows Phone 8. If you wish to build for other platforms, you will need to use Cordova locally on your machine. This blog

SSL connection , error

匆匆过客 提交于 2019-12-11 21:02:06
问题 I am trying to connect through SSL from my phone device to my server. When i am debugging the application on the device while i try to connect to my server i get this in the logs : > Opening URL: > https://193.158.3.165:8443/low-level-sample/subscribe?username=fk&password=ckd&appid=35[0.0] > 82-M4687r9k9k836r980kO2395i32i66y10a34&address=320ef999&osversion=5.0.0.669&model=9520&type=public&f[0.0] > ield1=844;deviceside=false;ConnectionType=mds-public > SSL:->CH and an error on the device that

running an existing project in eclipse setup

时光毁灭记忆、已成空白 提交于 2019-12-11 20:38:44
问题 I received a full working project's sourcecode for an app written in java. to set up my win7 machine I followed these steps: http://www.javacodegeeks.com/2013/03/setup-your-java-development-environment-in-windows-7.html i opened eclipse and need to work on this project, but have NO idea how to pull in the project with all its files so I can actually run it and test it. I need to make changes to this project. the folder is located in MyDocuments folder called Budget within Budget I have:

ant build failed xxx\xxx\build.xml:49: Java returned: -1

﹥>﹥吖頭↗ 提交于 2019-12-11 20:20:46
问题 I am trting to build Blackberry project and generate the cod file. My environment is Windows 7 and the apache-ant version is 1.8.2. I have encountered two problems and they all lead to failure. The command I used to build is "ant -Dbuild_env=prod" Below is part of the code in the build.xml file. <property file="build.properties" /> <property environment="SystemVariable"/> <!--<property name="jde.home" value="${SystemVariable.JDE_HOME}"/> --> <property name="jde.home" value="E:\eclipse

EventInjector on browser

拜拜、爱过 提交于 2019-12-11 20:11:11
问题 How do I use an eventinjector on a browser in blackberry to close the browser. I want to simulate the ESCAPE key being pressed on the handheld when the browser loads so that the app exits the browser and goes back to the main screen. I tried doing this myself but have not been successful. Any help would be most appreciated. 回答1: If you really want to control browser, you could use BrowserField , BrowserField2 in your app. You could also inject listener for key pressing or tracking which app

Facebook login in Blackberry 6

不羁岁月 提交于 2019-12-11 20:09:19
问题 I am developing an application in blackberry which requires the user's login through facebook. Fot that I search at Google and every body suggesting that use the sdk provide by sourceforge.net at https://sourceforge.net/projects/facebook-bb-sdk/. I downloaded the sdk and follow the pdf instrunction as follow. 1.Created a new project and also created a lib folder and copied the both .jar file 2.Added the jar and exported it to projected by going to property option for the project. 3.Next in

BlackBerry App world not able to download application in draft mode

柔情痞子 提交于 2019-12-11 19:59:45
问题 I am trying to create BB application that features the in-app purchase. I followed the following steps and was expecting the result. Setup a 'sandbox' account in using the BlackBerry App World vendor portal Upload your app into BlackBerry App world but don't publish it, just leave it in draft state Also in the vendor portal, set up your digital goods (the things available for in-app purchase) On your BlackBerry, load App World and login with your sandbox account email address. Within any