blackberry

How to check network connection type in Blackberry?

断了今生、忘了曾经 提交于 2019-12-10 17:25:51
问题 In Blackberry application I want to check what type of network connection is being used on particular phone, whether it is BES/MDS,BIS-B or Direct Tcp. Is there any way to find out this? Many applications like Jive,Opera and many more are doing this kind of check. Please help. 回答1: Your question springs from an incorrect assumption. A Blackberry could be communicating over any or all of those channels simultaneously. In fact any application may as well. At any particular time you can

PHP session_regenerate_id and Blackberry browser

夙愿已清 提交于 2019-12-10 16:45:44
问题 Greetings, I am working on a login system and getting stuck with Blackberry browsers authenticating. It seems they have an issue with PHP's session_regenerate_id(), can someone suggest an alternative? Here are the auth and login scripts: UPDATE It would appear that sessions in general are not working. Took out session_regenerate_id() just to see if it would work and it just redirects me every time, as though the $_SESSION['MD_SESS_ID'] were blank. Really stuck here, any ideas would be

Problem sending AJAX request with headers on Blackberry Webworks

拜拜、爱过 提交于 2019-12-10 16:28:44
问题 I am developing a Blackberry webworks application and I am having trouble with an AJAX request that I am making to a server. I am learning HTML/Javascript/AJAX on the fly, so excuse any beginner mistakes. Basically, formatted HTTP requests are made to the server, which returns JSON objects that I use in the application. I am using AJAX to make the requests without any kind of framework. Most requests do not have to be authenticated, and those are returning just fine. However, to access a

Blackberry - Clickable BitmapField With Different ID's

放肆的年华 提交于 2019-12-10 16:27:21
问题 i'm creating one application in which i get gift images with id's from web server through JSON. When i click on any gift image, it goes on next page where it shows all information of that image (get image information with its id from web server through JSON). Problem is: When i click on any gift image on page to see its relevant information, it gets the last gift image id every time, i want when i click on any image, it gets the specific image id which i click. How it is possible?? Screenshot

BlackBerry dynamically updating ListField

一个人想着一个人 提交于 2019-12-10 16:26:59
问题 Is it possible to update BlackBerry ListField dynamically? First I have created a listview with 10 objects, a background service is running in the background to collect the objects, after a while I got few more objects, I want to add these new objects to already existing ListField without reloading the MainScreen. 回答1: Yes, should be possible - add objects to your data structure (for example a Vector) and then call: UiApplication.getUiApplication().invokeLater(new Runnable() { public void run

Commenting out System.out.println

老子叫甜甜 提交于 2019-12-10 16:21:07
问题 Do System.out.println(...) calls pose any effect if left in BlackBerry code or any other programming language? When removed, the compilation time may be reduced, but is there any particular other reason to remove them? 回答1: There are a couple of things you need to know before using System.out.println() on Blackberry: Once you print out something to the standard output any person that has your application installed on the device will be able to see them. All they need to do is to attach the

decrypting data with AES/CBC/PKCS5Padding using blackberry

三世轮回 提交于 2019-12-10 15:43:22
问题 I am using AES/CBC/PKCS5Padding cipher instance for AES encryption and decryption in java How can I decrypt the data using blackberry encrypted by above in java. decrypting data with AES/CBC/PKCS5Padding using blackberry Thanks Bapi 回答1: I recommend using the BlackBerry API (Bouncy Castle will work, but why complicate things?). Use the net.rim.crypto package - you're using all symmetric encryption so you'll only need the standard RIM signing keys to run on a device ($20 and 2-3 days to get) -

Equivalent of configuration profiles (iOS) for Android, Windows Phone 7 and Blackberry

ε祈祈猫儿з 提交于 2019-12-10 15:20:44
问题 In iOS, configuration of email, wifi and vpn etc. can be pushed over the air using Configuration Profiles. Is there anything equivalent for Android, Windows Phone 7 and Blackberry? Link to Configuration profiles for iOS http://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/iPhoneOTAConfiguration/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009505-CH1-SW1 回答1: Look to the BES technology for BB. Everything is controlled by Service Records. But I don't

BlackBerry - Possible to Hide Video Field?

大憨熊 提交于 2019-12-10 15:08:46
问题 I want to write an application like a Flashlight (with the help of the camera LED). Player player = javax.microedition.media.Manager.createPlayer("capture://video?encoding=video/3gpp"); player.realize(); VideoControl videoControl = (VideoControl) player.getControl("VideoControl"); if(videoControl != null) { videoField = (Field)videoControl.initDisplayMode( VideoControl.USE_GUI_PRIMITIVE, "net.rim.device.api.ui.Field" ); try { videoControl.setDisplaySize(1, 1); } catch(Exception e) { PGLogUtil

One build for two different versions (4.6,4.7 and 5.0+above) in blackberry

和自甴很熟 提交于 2019-12-10 14:48:22
问题 I want to import facebook libraries for blackberry 5.0 and above and don't want to import those libraries for 4.6 and 4.7. I tried to use preprocessors for 4.7 and above by following below link: http://smartfone-more.blogspot.in/2010/05/coding-for-multiple-blackberry-devices.html now its working fine with JDE 4.7 but not getting expected result for 5.0. Please find the code below which i tried: //#ifdef JDE_4_7_0 import net.rim.device.api.ui.component.ButtonField; //#else import net.rim