blackberry

Splash screen image size

*爱你&永不变心* 提交于 2019-12-10 11:05:37
问题 I am creating a splash screen for my BlackBerry app. Right now the image is not properly placed in all the simulators on which I am testing. What should be the size of my image for the splash screen, so that it fits in all the device sizes? 回答1: The main part is, creating Startup Class which extends UiApplication . This is the StartUp.java public class StartUp extends UiApplication { public static void main(String[]args) { StartUp start=new StartUp(); start.enterEventDispatcher(); } public

How to access image stored in Blackberry using Bitmap.getBitmapResource()?

两盒软妹~` 提交于 2019-12-10 10:30:20
问题 I want to access an image stored in Blackberry, say at location "store/home/user/image.png" . Now can i access this image as, String filePath = "file:///store/home/user/image.png; Bitmap image = Bitmap.getBitmapResource(filePath); BitmapField bitmapField = new BitmapField(image, BitmapField.FOCUSABLE); OR I have to access it as, String filePath = "file:///store/home/user/image.png; FileConnection fconn = (FileConnection)Connector.open(filePath, Connector.READ); if (fconn.exists()) { ........

How to use Adobe Reader Mobile SDK 9 to develop pdf/epub reader?

删除回忆录丶 提交于 2019-12-10 07:24:56
问题 How can I use Adobe Reader Mobile SDK 9 to develop a pdf/epub reader for blackberry device? Please help me if you have any idea about Adobe Reader mobile SDK. Thanks. 回答1: No, RMSDK can't be used on Java platforms unless you can use JNI. 回答2: I've been building apps for Android and iOS with RMSDK. What exactly is the problem? Android uses NDK for accessing some native code, necessary to run the DRM and view workflows. iOS has everything sorted out within XCode, including the C/C++

avoid showing menu on button click

会有一股神秘感。 提交于 2019-12-10 04:36:03
问题 In my application there is a button and when the button is clicked the context menu pops up. How can I avoid having the context menu show up? protected void makeMenu(Menu menu, int context){ menu.add(_imageMenuItem); super.makeMenu(menu, context); } class ImageMenuItem extends MenuItem { ImageMenuItem() { super("Login Screen", 0, 0); } public boolean onMenu(int i) { return false; } public void run() { UiApplication app = (UiApplication) getApplication(); app.pushScreen(new LoginScreen()); } }

Phonegap app performance vs native app performance

梦想的初衷 提交于 2019-12-10 03:05:35
问题 we are looking at getting a barcode scanning application built. We are considering using PhoneGap but our only worry is speed. All the application will do is just scan a barcode and check a server to see if it's valid or not. The application uses the camera very intensely to scan the barcode via an image. My main question is, will scanning via phonegap be just as fast as a native app? Speed is really important as the user will have to scan multiple barcodes very quickly. 回答1: Phonegap uses

Unable to decrypt AES's ciphertext of php code in blackberry

馋奶兔 提交于 2019-12-10 00:43:06
问题 i m writing one application which encrypt and decrypt data using AES (ECB) mode. Encrypted data of blackberry code successfully decrypt by php code. but problem is that when i get encrypted text from php i m not able to decrypt it with blackberry code..even i m not getting any exception. here is my code to encrypt and decrypt text. public static byte[] encrypt( byte[] keyData, byte[] data ) throws CryptoException, IOException { // Create the AES key to use for encrypting the data. // This

How to close a global dialog and display another in BlackBerry?

☆樱花仙子☆ 提交于 2019-12-10 00:10:42
问题 When the iddle time is greater than or equal to 4 minutes, I need to display a message dialog. If the idle time is greater than or equals to 5 minutes, I need to close the first dialog and push another dialog that should be automatically closed after 5 seconds. This is what I have so far: public static RealtimeClockListener clockListenerTest = new RealtimeClockListener() { public void clockUpdated() { int _4Minutes = 60 * 4; int _5Minutes = 60 * 5; Dialog dialog4Minutes = new Dialog("Stay

BlackBerry - Reminder and SMS feature implementation

丶灬走出姿态 提交于 2019-12-09 23:57:49
问题 I am developing on BlackBerry 4.7 Storm device. Reminder: My application will allow user to enter data and set Date&Time to remind the notes. Can someone please suggest me how do i handle "reminder with some small description" at that particular Date&Time? What API or code should i use to handle reminder alarm? I also want to add recurrence in this reminder, so that it will remind based on the available recurrence. Does recurrence and reminder API supported in BB? It should do the following

Session management in Blackberry Webworks

让人想犯罪 __ 提交于 2019-12-09 22:56:56
问题 I want to be develop a blackberry application.That used an external DB through webservice call.I am choosing blackberry web works for developing this.I want to store a userid in phone like session after logged in a user.How use session management in BB webworks? help is highly appreciated. Thanks, Comp 回答1: You can use either SQLlite or Cookies. Cookies are extremly useful and easy to implement for non critical data: function setCookie(c_name,value,exdays){ var exdate=new Date(); exdate

Blackberry SDK

独自空忆成欢 提交于 2019-12-09 21:48:39
问题 I am new in Blackberry. so can anyone help me out for following queries. Which SDK is used in Blackberry? in Which language Black Berry application develope? and Can we call Web service through BlackBerry application? 回答1: Blackberry applications are written in Java. They support Java ME as well as some additional blackberry specific APIs. Check out http://na.blackberry.com/eng/developers/javaappdev/overview.jsp As for calling a web service, yes you can do that as well. Check out the Rapid