blackberry

how to access facebook or twitter using blackberry API?

醉酒当歌 提交于 2019-12-18 11:56:16
问题 I am newbie for such kind of social networking Application integration using blackberry API. i want to develope such kind of application which can use the facebook or twitter social networking site integration using available blackberry api. how to access the faceBook using blackberry API? Is there any webservice available of facebook on which blackberry api can work and access it? is there any application exist with whole source code for accessing the facebook using the blackberry api? if

Show Images from URL in blackberry

﹥>﹥吖頭↗ 提交于 2019-12-18 09:52:42
问题 I used following code to preview an image from an url. Bitmap bannerImage=Bitmap.getBitmapResource("http://www.asianmirror.lk/english/images/stories/demo/hot_news/top_news/sanga1_latest.jpg"); BitmapField banner=new BitmapField(bannerImage); add(banner); But the image doesn't preview in the UI. Is there is special way to preview images from a url in blackberry.(I means, shall I put the Image in to a temporary Array to preview the Image?) Thank you 回答1: try this - URLBitmapField wmf= new util

j2me/BlackBerry - How to send Email with Attachment from Application?

守給你的承諾、 提交于 2019-12-18 09:23:14
问题 hey i am building an application in which user can send an email to a person. The user enters the email id of the person to whom email is to be sent in a Edit field and then presses a send button the email must be delivered with an attachment. how can i do it?????? i m really confused after googling. can someone tell me the exact way also,cant i send email from simulator if my cod file is unsigned thanks in advance 回答1: Try this. Address[] address = new Address[1]; try { address[0] = new

How to write AES/CBC/PKCS5Padding encryption and decryption with Initialization Vector Parameter for BlackBerry

こ雲淡風輕ζ 提交于 2019-12-18 09:12:38
问题 How to write a BlackBerry program for AES/CBC with Initialization Parameter ecncryption and Decryption and this encryption and decryption should work independent on Programming language Ex= If I encrypt some data using BlackBery I must be able to decrypt the same data using Java Program. Thanks Deepak 回答1: The decryption half of your question is answered here: decrypting data with AES/CBC/PKCS5Padding using blackberry It should be easy to figure out encryption using the same pattern (use

How can I read SMS messages from the inbox programmatically in blackberry?

僤鯓⒐⒋嵵緔 提交于 2019-12-18 09:06:41
问题 I want to read SMS messages from Inbox,Draft,and sent from my blackberry device programmatically. Would any one will help me. 回答1: There is only way to access SMS messages, implement MessageListener and intercept messages when they are sending/receiving. There is no API to access SMS messages already saved in device memory (i.e already received). 回答2: See the BlackBerry Developers Knowledge Base article: What is - Different ways to listen for SMS messages 来源: https://stackoverflow.com

Blackberry 5.0 - Add reference to a Java Library Project

℡╲_俬逩灬. 提交于 2019-12-18 08:58:17
问题 It seems to me that what I'm trying to achieve is incredibly simple, yet is becoming incredibly painful. I have ProjectA which is a BlackBerry Application project. I have ProjectB which is a Java library project. I want to refer to ProjectB from ProjectA. I can add a reference but when I run ProjectA, it doesn't work. I have source code for both the projects and both are compiled using Java compiler 1.4 I have tried multiple things but everything fails for some reason: 1. pre-verify.exe on

Auto Rotation on Blackberry Programming

白昼怎懂夜的黑 提交于 2019-12-18 05:16:10
问题 I make code to Blackberry Storm. When my application in horizontal display (480x360), it's work. But when the Blackberry tilt into Vertical (360x480), the picture is cut off. So I was asking how to set up so that at the time of rotation, also resize the picture? is there any method to check if BlackBerry again horizontal or vertical display? Thanks. 回答1: Here are two things, either you will lock screen orientation or you will support in your application. Code sample: Retrieving screen

Blackberry 5.0 - BrowserField handle link clicked

别等时光非礼了梦想. 提交于 2019-12-18 05:10:49
问题 I am trying to handle an event in BrowserField when the user actually clicks a link. I studied BrowserFieldListener , tried its documentCreated() method but that gives me a response when the page starts loading. I want a trigger the moment user clicks a link inside browserField. What am i missing here? 回答1: Override handleNavigationRequest() of ProtocolController like ProtocolController controller = new ProtocolController(browserField) { public void handleNavigationRequest(BrowserFieldRequest

Blackberry - Setting LabelField background color

我的梦境 提交于 2019-12-18 04:26:07
问题 I want to place several LabelFields with right-aligned text on a MainScreen with an alice blue background. Unfortunately I can't seem to figure out how to make that happen. The best I can do is set my backround to Color.ALICEBLUE on a MainScreen and place LabelFields on the screen (also with a alice blue background). public void paint(Graphics graphics) { graphics.setBackgroundColor(Color.ALICEBLUE); graphics.clear(); super.paint(graphics); } and... LabelField display = new LabelField("",

Blackberry: Emoticons in Chat Application

99封情书 提交于 2019-12-18 03:48:26
问题 I want to make a chat application where the emoticons are necessary. I was trying to write my own TextBox to handle some unicode caracters and replace them with smiles and emoticons, but that was a hard work to do and I encountered many problems. Then I tried to make a custom font that will have emoticons in it but I found that a font is made in black and white and cannot be colored. I tried then to use different EditFields so when I find a Bitmap I draw it and start a different EditField but