blackberry

Google Map is not showing in Blackberry Browser

北慕城南 提交于 2019-12-22 01:42:39
问题 Hello Everyone, I am trying to open Google-Map URL in BlackBerry Browser , but unfortunately it's not showing the Google-Map. The URL is working fine in other OS(Android , Iphone , Windows) here is the URL : https://maps.google.com/maps?saddr=DT4+8DX&daddr=DT6+3JP and here is my Blackberry Code String address = "https://maps.google.com/maps?saddr=DT4+8DX&daddr=DT6+3JP"; Browser.getDefaultSession().displayPage(address); // I also tried with this approach String address = "https://maps.google

AES 256 in Blackberry

纵然是瞬间 提交于 2019-12-22 01:03:44
问题 How can I do AES 256 encryption in Blackberry... I am using for encryption : but not get data AES256 standard : private static byte[] encrypt( byte[] keyData, byte[] data ) throws CryptoException, IOException { // Create the AES key to use for encrypting the data. // This will create an AES key using as much of the keyData // as possible. AESKey key = new AESKey( keyData ); // Now, we want to encrypt the data. // First, create the encryptor engine that we use for the actual // encrypting of

BlackBerry - global exception handler

杀马特。学长 韩版系。学妹 提交于 2019-12-22 00:29:50
问题 (edit: this question is about BB specifically, because of the strange way it optimises exceptions. I am comfortable with normal exception handling patterns in J2SE, but BB does not behave as per normal. Specifically in this case, BB discards the error type, and message, and how BB devs try to deal with this issue, or if they ignore it.) I would like to implement some form of custom global error handling in my BB app. Specifically to try to handle any other exceptions that were not caught by

Dialog creation in Blackberry

有些话、适合烂在心里 提交于 2019-12-21 22:26:52
问题 Hi, I want to create a Login Screen which has a Username and Password and a Sign in Button But when a user fails to enter correct information inside the TextField of Username or Password a pop up like the image chat dialog should pop up from corner of TextField's right side displaying appropriate message How can this Customization be achieved? 回答1: i am giving you a simple way. If it is not perfect to your question you just ignore this answer. Here i made logic like following. i gave you two

Target specific BlackBerry's with User Agent

不羁岁月 提交于 2019-12-21 21:44:17
问题 I found this javascript to detect blackberry devices: <script type="text/javascript"> var ua = navigator.userAgent; if (ua.indexOf("BlackBerry") >= 0) { if (ua.indexOf("Version/") >= 0) { // ***User Agent in BlackBerry 6 and BlackBerry 7 Verposition = ua.indexOf("Version/") + 8; TotLenght = ua.length; document.write("Jorgesys BB OS Version :: " + ua.substring(Verposition, Verposition + 3)); } else {// ***User Agent in BlackBerry Device Software 4.2 to 5.0 var SplitUA = ua.split("/"); document

How to package and deploy blackberry apps to device from Eclipse

扶醉桌前 提交于 2019-12-21 15:23:20
问题 How do I package and distribute my apps from the Eclipse IDE? My apps work within the simulators, but I have no idea how to deploy them to my blackberry device. I moved the files to the Media card but I kept getting errors (i.e. invalid COD errors). Is there an appropriate way. It worked fine in the simulator! 回答1: If your app uses any controlled APIs you will first need to get it signed by RIM. For more info on how to apply for code signing keys look here. Once you have your keys installed

Multiple Projects with Eclipse

感情迁移 提交于 2019-12-21 13:01:02
问题 I have workspace inside of Eclipse which has 2 projects in it. I want to reference project #2 from project #1, but when I go to Project -> Properties -> References, and tick the project that I want to add as a reference, I am still not able to instantiate the classes from project #2 inside of project #1. This is a blackberry app, developed in Java and in Eclipse. Project1 Launcher.java Project2 Screen.java I want to use Screen scr = new Screen(); // located in Project1 回答1: You need to add

Approach to developing mobile application that supports a web application

。_饼干妹妹 提交于 2019-12-21 06:45:07
问题 My company built its own project management web application. It's like basecamp on steroids. The core features of this application are: create task lists assign tasks to team members track hours against task items I am looking to build mobile application(s) as an extension to the web application. The mobile applications(s) must: reproduce the features mentioned above connect to the same database as the web application retain drag drop capabilities provide a rich user experience equivalent to

window.location not work properly

久未见 提交于 2019-12-21 06:37:49
问题 Hi all I am navigating from one html page to another as: window.location = "test.html"; In test.html I have header as: <script type="application/javascript"> function redirect() { alert("inside redirect:"); //window.location = url; //history.back(); history.go(-1); return false; } </script> <div data-role="navbar"> <ul> <li> <a href="#" data-theme="b" onclick="history.back(); return false;">Go Back</a></li> <li> <a onclick="redirect()" data-icon="back" data-iconpos="notext" data-direction=

How to develop a multi screen Blackberry application?

久未见 提交于 2019-12-21 06:08:10
问题 I need to develop an application where I am able to change screens using menu items previous and next. Can u give me a rough idea about how to implement it? Thanks 回答1: You can implement it as an array of screens and push them in circle. but don't forget to pull current screen before push new. It's the application will handle screen switch and also it will handle the screen array. But menu is placed on the screen, so we have to make some communication between screen and application class. Let