blackberry

Run background task from MainScreen in BlackBerry?

≡放荡痞女 提交于 2019-12-25 04:04:29
问题 The issue is how do i make an inception in BlackBerry? Background: I need to run background service (No Screen Application) after i register a client, after that i need to run safely on the thread. Thank you very much in advance , code example will be really appreciated. 回答1: You'll need to create a runnable class that extends thread. (Note, there may be other ways to do this, but this one works. So you'll need something like public class BackgroundTask extends Thread{ private Object _screen;

Blackberry User-Agent and https Redirect url

牧云@^-^@ 提交于 2019-12-25 04:03:53
问题 I tried to access a HTTPS connection by entering the value in browser, it seems to work fine and redirects me to expected page/output. But when I tried the same using the code, I am unable to get the result. I tried of setting the UserAgent as (Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-GB) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.141 Mobile Safari/534.1+). But no luck. I am getting trusted connection alert, when i click continue i get response code 302.How can i implement

Blackberry User-Agent and https Redirect url

醉酒当歌 提交于 2019-12-25 04:03:39
问题 I tried to access a HTTPS connection by entering the value in browser, it seems to work fine and redirects me to expected page/output. But when I tried the same using the code, I am unable to get the result. I tried of setting the UserAgent as (Mozilla/5.0 (BlackBerry; U; BlackBerry 9800; en-GB) AppleWebKit/534.1+ (KHTML, like Gecko) Version/6.0.0.141 Mobile Safari/534.1+). But no luck. I am getting trusted connection alert, when i click continue i get response code 302.How can i implement

Adding Editfield to Popup screen

Deadly 提交于 2019-12-25 03:44:22
问题 I have created my own custom popup screen to which now I am trying to add a editfield , everything seems to be fine but the problem is that I am not able to write anything in the edit field class sveetIt extends PopupScreen implements FieldChangeListener, DialogClosedListener { Hashtable pitemData; ButtonField sveetNowlabelField; ButtonField sveetLaterlabelField; WatingScreen watingScreen; long scheduledTime; Dialog updateDialog; public sveetIt() { super(new MyCustimGridFieldManager());

How to insert an array of String in SQLite database in blackberry

孤街醉人 提交于 2019-12-25 03:29:19
问题 I have a Database Manager class which is creating the SQLite Database.Now from another class, i am creating the instance of that class. Now how can i insert an array of string in the Database? My Database Manager class code is like below: public class DatabaseManager { public Database sqliteDb = null; public DatabaseManager() { try { URI myURI = URI.create("/SDCard/databases/itemdb.db"); Database sqliteDb = DatabaseFactory.openOrCreate(myURI); sqliteDb.close(); sqliteDb = DatabaseFactory.open

Control thread through button

旧城冷巷雨未停 提交于 2019-12-25 02:49:23
问题 We require a piece of code to control a thread. For example, use three buttons like start, stop and pause, press one of them and perform the action against it. Like press start then start the thread, press stop actually stops thread and pause perform pause action respectively. 回答1: Starting a thread is simple with Thread.start() . Stopping a thread can be as simple as setting a flag that is checked asychronously in the run method, but may need to include a call to Thread.interrupt() . Pausing

How to add timer to a blackberry application

放肆的年华 提交于 2019-12-25 02:48:09
问题 Merged with how to add timer in a blackberry application. Sir i am developing an application in blackberry.Its like a test with some questions,at the end of the test result is being displayed.Nw i want to add a timer at the top,so that when the test starts,till a user finishes a test,the time will be displayed at the top of the screen.So i want to add a timer for that.Time should be in the format of 00:00,& it will keep on increasing till the user finishes a test.Can anyone help me with the

Blackberry how to design the Screen like grid view

拜拜、爱过 提交于 2019-12-25 02:29:41
问题 I am very new to blackberry development and i don't even know how to start. I already read some part of it from it's official site http://developer.blackberry.com/devzone/files/design/bb7/UI_Guidelines_BlackBerry_Smartphones_7_1.pdf and other so many link, but i can not post all the link as it is saying thay if you want to post more links then you must have 10 reputation and i dont have that so sorry for that, Now my question is i want to design layout like this http://postimg.org/image

Not able to read the time from native calendar event

一曲冷凌霜 提交于 2019-12-25 02:26:44
问题 I have created a appoitment for particular date and time in Blackberry calendar,i am trying to read date and time using the following code,but its showing the error. private void getEvents() { try { EventList eventList = (EventList)PIM.getInstance().openPIMList(PIM.EVENT_LIST, PIM.READ_ONLY); Enumeration events = eventList.items(); while (events.hasMoreElements()) { Event event = (Event)events.nextElement(); if(eventList.isSupportedField(Event.ALARM) && event.countValues(Event.ALARM) > 0) {

sending email with pdf attachment in blackberry

元气小坏坏 提交于 2019-12-25 01:49:12
问题 I need to integrate mail service in my application. My application should send the email, which has to attach a .pdf file (detailed report). PDF file is now at remote server. Can anyone help me to understand how to send mail with pdf attachment in blackberry? If, it is feasible to implement then how would i go with this? Below are the links, I have got from Blackberry knowledge base forum for sending mail in blackberry How To - Create an attachment How To - Create and send messages 回答1: I