How can I update time and show it.
I have to show the current time in a tab in my application...
my date format is hour: minute (hh: mm)
Show I want to upadte my dateField in every minute...
How can I do this... I don't want to use wire...
BlackBerry API has a RealTimeListenerinterface...
It has a clockUpdate() function
I can solve my problem with this interface...
Help, please...
Or if you know how to do it with wire you can also answer...
The RealtimeClockListener interface is the perfect tool for this.
Here is a snippet of code showing how you can use this to a DateField. Note how the listener is added when the field is displayed and removed when it is not. Code is not compiled, probably syntactically incorrect, but I hope you get the idea.
public class updatingdatefield extends DateField implements {RealtimeClockListener}
....
public void onDisplay() {}
Application.getApplication () .addRealtimeClockListener (this);
}
public void onUnDisplay() {}
Application.getApplication () .removeRealtimeClockListener (this);
}
public void clockUpdated() {}
final UpdatingDateField myDateField =;
UiApplication.getUiApplication () .invokeLater (new Runnable() {}
public void run() {}
myDateField.setDate (System.currentTimeMillis ());
});
}
I would avoid using timer for this. This one uses just one wire under the covers in any case!
Tags: BlackBerry Developers
Similar Questions
-
How can I watch movies and shows with my dishanywhere account?
How can I watch movies and shows with my dishanywhere account? Is required to download the video optimizer dishes online but surface rt will not let me.
Hi Emily,.
1. what browser you use to access dishanywhere account?
2. what exactly happens when you try to watch movies through dishanywhere?
3. have you successfully registered your account on dishanywhere?
4. What is the exact error that you receive when you try to install the video optimizer online?
Dishanywhere may require a user to install some software on a computer before using their services on this computer. But in Windows RT, we cannot install anything outside of what is available in store Windows. So, if dishanywhere was indeed need applications must be installed in a computer, we are not able to do in a Windows RT device.
Therefore, I suggest you check with the support of dishanywhere once to see if we need any application to be installed on a computer to use their services.
For your reference:
http://www.dish.com/technology/dish-anywhere/
http://www.mydish.com/support/dishanywhere?WT.SVL=container
Please answer back with more information to help you further.
-
I have windows vista using 32 bit how I up date and rotate faster is it running at 2.1? my desktop and laptop are running on the same why so my office so slow?
Hello
are you referring to the windows experience index?
If so this number is determined by the material that uses your computer
Make sure you have the latest vista drivers for your computer which you can get your computer manufacturers Web site
go to their website and look for a driver and software download section
Enter your model number for the last look drivers vista then download and install
If that improves not there you need to upgrade the hardware: map graphic or RAM
the total number is determined by the lowest number of material
http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-the-Windows-experience-index
-
I export a DNG from Lightroom on my iMac (OSx 10.11.2) but the thumbnail in os x Finder still shows the unmodified image. How can I update the thumbnail?
Export to DNG will always export a unretouched photo non-modified. Your changes are in the XMP of DNG file as text, and most of the viewers of DNG files cannot interpret or use this text. So, it seems that when you export photos in DNG, Lightroom has done what it is supposed to do.
-
I forgot the answer to my security question, I tried to update these answers, but to update them also, I must first answers old issue of security which I forgot how can I update and change my security question and the answers
?
You must ask security team account Apple to reset your security questions. To contact them, click here and choose a method; If this page does not list one for your country or if you are unable to call, complete and submit this form.
(143315)
-
the new firefox open my home page in addition to the start page of firefox, everytime I open firefox. How can I stop this and make sure ONLY my home page shows?
Delete the USER. JS file if there is (some plug-ins create in addition to prefs.js).
-
Hi, I just bought a used 2012 Pro 13 "Macbook. It came with iMovie installed. However, I would like to get the update to iMovie. He said: I can't update iMovie because a different Apple ID was used to download iMovie and I get errors. How can I update iMovie?
Error message #1: these applications cannot be accepted by your Apple ID. These applications have already been assigned to another Apple ID, and they will be available in this list of purchases Apple ID. If you don't have access to this Apple ID and would like to receive future updates, you will need to purchase applications.
Error message #2: update are not available with this Apple ID. This update is not available for this Apple ID either because it was bought by another user or the item has been refunded or cancelled.
Error message #3: we could not complete your request. There was an error in the App Store. Please try again later. (null)
Unfortunately, free updates are available to the original purchaser of the computer. The iMovie is locked to his Apple ID, so unless you have to grab his ID, you can buy iMovie.
-
Have a new 6s, but cannot get it to sync with iTunes on my Mac. Both systems have system updates (and confirm the latest version). How can I update iTunes on my phone when he said the latest version?
The message to update iTunes refers to iTunes on your Mac - is your Mac on a high enough version of Mac OS X to support the required iTunes version? If this isn't the case, then your Mac can be changed?
-
I had to change my Apple ID due to fraudulent charges but my iPhone 6s 9.2 still has the old Apple ID and will not accept old or new passwords. How can I update the iPhone 6s 9.2 with the new Apple ID and password? I tried to perform a complete reset, but which requires the Apple ID and password that doesn't work not... pretty frustrated here.
YYou have unlink the old iphone you as find my iphone the reset all devices on this subject from your account then plug it to your iTunes then restore a new one after that reset password that under the new phone then connect
-
I have Microsoft Money 2006 how can I update and keep the info?
I have Microsoft Money 2006 how can I update and keep the info?
Hi NRHand7,
Microsoft has stopped selling money on June 30, 2009. The last activation of version (more Money, or money 2008) required in order to be fully functional.
For more information, you can consult the following articles:
What is Microsoft Money Plus sunset?
We can refer to the following articles and check if it helps.
How to export and import account information in Microsoft Money
How to remove and reinstall Microsoft Money
You can also post your query in Microsoft Money Forum to get help.
Hope this information is useful.
-
How will I know that my bios is up to date and if not how can I update
How will I know that my bios is up to date and if not how can I update
For any questions about the Bios, contact the manufacturer of your computer if Vista was preinstalled, or the manufacturer of the motherboard if you have built your own system...
BIOS issues outside of these Forums.
See you soon. Mick Murphy - Microsoft partner
-
How can I update and synchronize my skydrive app.
How can I update and synchronize my skydrive app.
title orig: helpHi Harry,.
See the section "Update your app" from the link learn more about updating the application.
What to do if you have problems with a soft
http://Windows.Microsoft.com/en-us/Windows-8/what-troubleshoot-problems-app
Connect your applications, files, computers and devices to the cloud with SkyDrive and Windows 8.
http://apps.Microsoft.com/Windows/en-us/app/sync-for-SkyDrive/dba55c55-efdd-42f9-B249-69945c6fab5b
I hope this helps.
-
How can I update my version of Adobe Captivate, I have version 8 and I want to get the version 9
Go to the sales and purchase the new version
-
How can I update Acrobat Standard 8.0.0 to 8.1 and beyond?
I have Acrobat Standard 8.0.0 running on Windows 7, 64-bit and I want to update. When I try to update via the program I get an error message indicating there is no internet connection. How can I update to 8.1, and then upgrade to the latest version of Acrobat 8 Standard? I found various updates, but they all require that 8.1.1 be installed first. It's driving me crazy!
I would appreciate help. Thank you.
I just sent you a private message to the location.
-
I have just upgraded to Windows 7. But whenever I turn on my computer, he wants to support me on my user account name before completely loading windows. How can I stop this and simply load in thank you Windows.
Hi UKuser7,
Welcome to Microsoft Answers Forum.
Automatic logon is disabled in Windows 7 by default for security reasons. If it is enabled, anyone who can physically access the computer can also gain access to everything on the computer, including the networks that it is connected.
This setting is only recommended for cases where the computer is physically secure.
To set up Windows 7 to connect to the desktop automatically, follow the steps below.
1) click Start , and then enter the following command in the start search box:
Netplwiz
2) press ENTER.
This opens the Advanced user accounts Control Panel window.
(3) in the users tab, uncheck the box next to users must enter a user name and password to use this computer.
4) click apply at the bottom of the user accounts window.
(5) when the newspaper automatically on the dialog box appears, enter the user name for which you want to automatically connect to Windows 7. Then enter your password in the two areas where it is requested.
6) click on the OK button.
7) click OK in the window user accounts to complete the process.
Thereafter, your PC at startup, Windows 7 will be automatically connect.
Ticket back for your comments and concerns.
Kind regards
Shinmila H - Microsoft Support
Visit our Microsoft answers feedback Forum and let us know what you think
Maybe you are looking for
-
How can I test the memory on my powerbook pro
My Powerbook Pro sometimes do strange things. Now, I would like to test the internal memory and the memory of my card. Is there a good way to test it? In the past there where the programs official test of apple. But now it seems not to be around. Th
-
I need help to identify my PC model. It is said that "envy" there is no visible tag with the model # etc. "." Thank you
-
get the email addresses on to the field and paste it into the document
I need to create a list of email addresses and my only source is an email that was sent to me. If I type 'reply to all' I can see all the email addresses, but when I try to copy / paste into Word, the only thing that appears are the display names.
-
Hard Drive replacemsnt and number of shared folder
I share a folder with several subfolders between 2 computers, both running Windows XP - Pro I set up sharing so that changes in the files would be reflected on two computers - the drive on one of the computers failed although the data was recoverable
-
During the reinstallation of XP, message "Please wait" frozen and inactive computer
Recently, I tried to reinstall Windows XP SP2 from an installation disc that came with my computer. Before reinstallation, it was under XP SP3. He went through the installation process. It appeared that the installation is complete. It restarted (for