blackberry

Application cannot be deleted when has multiple entry points

你离开我真会死。 提交于 2019-12-08 07:02:25
问题 EDIT: Using simpler code. I have a blackberry app that until recently (I upgraded to 6.0.0.600 on my torch) could be deleted. Now I can't even if I use javaloader -u erase (module in use) and the UI context menu or physical menu has no option for delete. The code below just requires an app descriptor with an alternate entry point on startup with parameters "startVibrate". The entry points code is below. package mypackage; import net.rim.device.api.system.Alert; import net.rim.device.api

Custom List With Images in Blackberry

一笑奈何 提交于 2019-12-08 06:40:18
问题 I want to implement something like this in my application: That is, each image contains one heart icon. I want to handle the click event on heart click and for that I have the following code list.setEmptyString("No Image Available", DrawStyle.HCENTER); list.setRowHeight(Display.getHeight() - 100); list.setSize(data.size()); if (listVManager != null && listVManager.getFieldCount() > 0) { listVManager.deleteAll(); } list.setCallback(new ListFieldCallback() { public void drawListRow(ListField

BlackBerry - How can i show a Label with emoticons?

不想你离开。 提交于 2019-12-08 06:38:19
问题 I need to show a Label with emoticons included already in the blackbery interface, with flags, etc. 回答1: There is no such built-in functionality. With net available you can use BrowserField or WebBitmapField. Otherwise you can use local resources + BitmapField. I wouldn't advice to use LabelField with custom drawing, just add simple LabelField before or after BitmapField with emoicon. UPDATE: See alternative answer at Blackberry: Emoticons in Chat Application 来源: https://stackoverflow.com

Error starting AppName Module 'AppName' attempts to access a secure API

拈花ヽ惹草 提交于 2019-12-08 06:33:39
问题 In my BB application after installing it on the device showing this Error "Error starting AppName Module 'AppName' attempts to access a secure API" I am opening internet Browser in my application and not giving any kind of permission so this can be the reason of this error of something else..... Please Help Thanks 回答1: Please try to sign your application, then install. If you do not have a signature key, you can request new keys here. It's free nowadays. More help in this link. 回答2: This

Developing photo gallery application

半世苍凉 提交于 2019-12-08 06:15:07
问题 I want to develop a photo gallery in Blackberry. Please give any suggestions about functionality and implementation. 回答1: 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

Blackberry - get contacts list

烂漫一生 提交于 2019-12-08 06:05:40
问题 I wanted to get the list of all names and their corresponding email address from the contact list in blackberry JDE 4.7 can anyone help with the code for getting the above mentioned things.. Thanks in advance... 回答1: try this code: public Scr() { Vector v = getContacts(); Enumeration iterator = v.elements(); while (iterator.hasMoreElements()) { String[] contact = (String[]) iterator.nextElement(); for (int i = 0; i < contact.length; i++) add(new LabelField(contact[i])); } } private Vector

BlackBerry Cannot run program “jar”: CreateProcess error=2, The system cannot find the file specified

家住魔仙堡 提交于 2019-12-08 05:58:08
问题 I am developing a BlackBerry Application with a number of class files in it; 16 java classes at the moment and they keep increasing as this App is complex with a lot of screen and features. I am working in Eclipse with the BlackBerry Java Plug-in. I am using BlackBerry JRE 6.0. I have recently started getting the following error: Error: Cannot run program "jar": CreateProcess error=2, The system cannot find the file specified I have Google for this error and many suggest this is caused by

Open pdf, doc, ppt or xls on a BlackBerry

☆樱花仙子☆ 提交于 2019-12-08 05:57:52
问题 How do I open pdf, doc, ppt or xls programmatically on a BlackBerry? 回答1: The best approach is to purchase a 3rd-party viewer and launch that to view the document: String path = "file://SDCard/info.doc"; String contentType = MIMETypeAssociations.getMIMEType(path); Invocation invocation = new Invocation(path, contentType, null, false, ContentHandler.ACTION_OPEN); Registry registry = Registry.getRegistry(MyApp.class.getName()); try { ContentHandler[] handlers = registry.findHandler(invocation);

How to put two buttons in Horizontal field manager in blackberry for any device?

给你一囗甜甜゛ 提交于 2019-12-08 05:48:43
问题 I have two buttons in a horizontal field manager. one i want to put in left side of the screen and another in right side. How can i put them properly without implementing sub layout, so that it can work for all the device? 回答1: i think creating your custom manager is best way to layout controls. but i think we can that VerticalFieldManager vfm = new VerticalFieldManager(USE_ALL_WIDTH); vfm.add(new ButtonField("button2",Field.FIELD_RIGHT)); HorizontalFieldManager hfm = new

Enabling Multiple Connection Type

☆樱花仙子☆ 提交于 2019-12-08 05:46:20
问题 I have a HTTP Connection on my application, for the current time being it is only applicable if the users are connected to WIFI connection. How would I do this if I'd like to enable it for any connections that the particular device has? Say that the device has a BIS service, or even a normal WAP service. This is my code. try { connection = (HttpConnection) Connector.open(url+ ";interface=wifi"); is = connection.openInputStream(); try { SAXParser parser = SAXParserFactory.newInstance()