blackberry

How do you make a dropdown list that displays images to the user instead of text?

 ̄綄美尐妖づ 提交于 2019-12-12 07:59:22
问题 The ObjectChoiceField field meets all my requirements but it is not pretty. This is what I have: String pets[] = {"Dog", "Cat", "Duck" }; ObjectChoiceField dd = new ObjectChoiceField("My Pet",pets,0,ObjectChoiceField.FIELD_LEFT); But I would prefer to have pictures in the dropdown. My understanding is that the object array must contain objects that support the toString method. There are got to be a way to do I see it in other apps, I just can't find the correct object in the API. It doesn't

Blackberry - loading bar at the bottom of screen

谁说胖子不能爱 提交于 2019-12-12 06:36:56
问题 Facebook and twitter have a loading bar at the bottom of the screen that can dissapear if the page have finished loading. What field or layout manager that implemented dissapear thing. Are that custom field/manager? what it is called? thanks for ur answer 回答1: We can achieve what Facebook or Twitter did with 2 VerticalFieldManger and 1 Field ( loadingBar ). Customize your loadingBar as you wish. Check this layout Use 1st VerticalFieldManger as parentManager . and 2nd VerticalFieldManger as

What is the correct header value to bypass MDS HTTP authentication?

*爱你&永不变心* 提交于 2019-12-12 06:15:29
问题 I found this article: http://supportforums.blackberry.com/t5/Java-Development/Issues-with-BlackBerry-MDS-Connection-Service-when-using-Pre/ta-p/495706 It says that starting from BlackBerry Enterprise Server 4.1.7 you can add x-rim-authentication-passthrough header to bypass MDS HTTP authentication per request. Can someone please tell me which value to set for this header? My wild guesses so-far that haven't worked are: //httpConn.setRequestProperty("x-rim-authentication-passthrough", "true");

How to add simple form fields to a BlackBerry application?

自古美人都是妖i 提交于 2019-12-12 05:58:31
问题 Assuming I have a class inherited from MainScreen, how do I put up a couple of form fields for user input? 回答1: // Inside the constructor LabelField label1 = new LabelField("Hello World Demo" , LabelField.ELLIPSIS | LabelField.USE_ALL_WIDTH); EditField firstNameEditField = new EditField(EditField.NO_NEWLINE | EditField.NON_SPELLCHECKABLE | EditField.NO_COMPLEX_INPUT); EditField lastNameEditField = new EditField(EditField.NO_NEWLINE | EditField.NON_SPELLCHECKABLE | EditField.NO_COMPLEX_INPUT);

how to upload and download blackberry application from webserver?

喜夏-厌秋 提交于 2019-12-12 05:34:02
问题 Hi all how to upload and download blackberry application from webserver ? i have already set MIME type but yet i cant download sucessfully .so what can i do ? 回答1: In the application folder please find the install files in \deliverables\Web\ [version no] From there take .jad file and all files with the extension of .cod file and deploy to the server. And set the MIME type to the following. JAD text/vnd.sun.j2me.app-descriptor COD application/vnd.rim.cod Note : The usual problem may be we take

Cancel scrolling in Layout Manager

南楼画角 提交于 2019-12-12 05:27:32
问题 I can't find solution for the following problem. I have custom list field, which overlaps the boundaries of its layout manager. List field consumes navigation events from manager to highlight currently selected row with special color. Layout manager is configured to support scrolling. When I scroll trackwheel down, layout manager invokes scrolling and then passes navigation event to its child, the list field. It results in inproper scrolling, because manager scrolls the whole list down to its

Facebook oAuth implementation for blackberry

我怕爱的太早我们不能终老 提交于 2019-12-12 05:25:20
问题 I am working on a blackberry native application, which uses the features like Facebook and twitter sharing of messages. After goggling I found that I could make use of Facebook SDK in order to integrate with Facebook service. I have downloaded the SDK from this link https://sourceforge.net/projects/facebook-bb-sdk/ I have followed the steps that are being explained in the README pdf file, which was bundled with SDK. I have followed the below steps Step1: Getting Facebook façade instance

IllegalStateException BlackBerry

纵然是瞬间 提交于 2019-12-12 05:18:10
问题 public class show extends MainScreen { private String date1; private long date1l; private long date2l; private LabelField curDate = new LabelField(); private LabelField toDate = new LabelField(); private LabelField diffe = new LabelField(); // private LabelField info; // private LabelField empty; // private InvokeBrowserHyperlinkField hello; ButtonField activate = null; ButtonField disactivate = null; Timer timer; Timer timer2; public String date1s[]; int d, m, y; int x = 1; String day, hour,

issue with onClickListner with LableField blackberry

喜你入骨 提交于 2019-12-12 05:01:53
问题 I am developing one app in which i need to call at particular phone number for that i have take LableField and make Number.setChangeListener(this); and implement its method fieldChanged and try to handle event but i cant able to do it with this lablefield Here is code :: import net.rim.blackberry.api.invoke.Invoke; import net.rim.blackberry.api.invoke.PhoneArguments; import net.rim.device.api.system.Bitmap; import net.rim.device.api.system.Display; import net.rim.device.api.ui.Color; import

What is the database location in Blackberry while using phonegap

可紊 提交于 2019-12-12 04:59:15
问题 I have a 9800 simulator. I mounted a directory as SDcard... Now if i use function populateDB(tx) { tx.executeSql('DROP TABLE IF EXISTS DEMO'); tx.executeSql('CREATE TABLE IF NOT EXISTS DEMO (id unique, data)'); tx.executeSql('INSERT INTO DEMO (id, data) VALUES (1, "First row")'); tx.executeSql('INSERT INTO DEMO (id, data) VALUES (2, "Second row")'); } function errorCB(err) { alert("Error processing SQL: "+err.code); } function successCB() { alert("success!"); } var db = window.openDatabase(