Manipulation of the Phonlog but without success in removing an element
Hello
I wrote a small application that needs to manipulate the last entry in the phonelog. I want to replace the number dialed by a custom filter. Only the custom number must be in the newspaper. Writing number custom works very good journal but by removing the number dialed does not work. I read in another thread that der had a problem with the removal of items phonlog in v4.2. I develop on version 4.5 fact that the problem persists or I did something wrong (see list below).
import java.util.Vector;import net.rim.blackberry.api.phone.phonelogs.CallLog;import net.rim.blackberry.api.phone.phonelogs.PhoneCallLog;import net.rim.blackberry.api.phone.phonelogs.PhoneCallLogID;import net.rim.blackberry.api.phone.phonelogs.PhoneLogs;import net.rim.device.api.system.PersistentStore;import net.rim.device.api.util.StringMatch; public class PhoneLogListener implements net.rim.blackberry.api.phone.phonelogs.PhoneLogListener { private AsteriskMenuItem caller; private boolean editFlag = false; public PhoneLogListener (AsteriskMenuItem theMenuItem) { caller = theMenuItem; } public void callLogAdded(CallLog cl) { PhoneCallLog myLog = ((PhoneCallLog)cl); //get ne number to be write in the log String participantNumber = (myLog.getParticipant()).getNumber(); //get the current service number from the persistent store (String) Vector persStore = (Vector) (PersistentStore.getPersistentObject( 0xd4b6b5eeea339daL )).getContents(); String currentServiceNumber = (String)persStore.firstElement(); //if the participantnumber starts with the servicenumber we did come from the application and want to edit the logentry if (participantNumber.startsWith(currentServiceNumber)); { //set the number we want to show myLog.setParticipant(new PhoneCallLogID(caller.getPhoneNumber2())); //remove the listener to prevent an endless loop PhoneLogs.removeListener(this); //---> the folowing does not work //(PhoneLogs.getInstance()).deleteCall(0, PhoneLogs.FOLDER_NORMAL_CALLS); //---> the folowing works (PhoneLogs.getInstance()).addCall(myLog); } } public void callLogRemoved(CallLog cl) { // TODO Auto-generated method stub } public void callLogUpdated(CallLog cl, CallLog oldCl) { // TODO Auto-generated method stub } public void reset() { // TODO Auto-generated method stub } }
The invokeLater proved to be crucial for my scenario.
You can learn more here:
Or search through the forums.
Tags: BlackBerry Developers
Similar Questions
-
I have windows 7 which is not download the available updates. I open windows update and changed several times. After checking the updates for several hours the system provides no updates, although indicates they are available. I'm having a problem in using the recovery feature in control because of this Panel. Please correct the deficiency.
Post proposed by the facilitator for the appropriate forum placed
Windows 7 update problems? First read this.
:)
-
I have a problem with creative cloud applications is not to be downloaded or updated date on my i mac, current applications, I still have work. I uninstalled the cc application and re-installed but without success, on the applications tab there is no code error only saying download error out area allowing you to charge applications call does not work... any suggestions?
Hi James,
Please follow the article: CC help | Download error in the applications tab of Creative Cloud Desktop Application to get this fixed number.
Please let us know any questions.
Thank you
Yann Arora
-
I've just updated to LR5. I also have a new camera. Nikon D800. Try importing directly (from the camera) in LR. But without success. Get the following message. "The files are a camera which is not recognized by the raw format support in Lightroom." How can I import it please?
I find the program file for Lightroom 5 and make an icon of office for him. And I would get rid of Lightroom 3. If you open Lightroom 3 and you see images in the old catalog, not the updated one.
-
I'm trying to open Media Encoder - but without success
I'm trying to open Media Encoder - but without success. He use to work perfect
When I start it up, he tells me he's going clouse downwards. What can I do to restore the program?
Media Encoder is CS6
Windows 7
Can you try to keep Alt + Ctrl (Win) cmd (Mac) + SHIFT while launching the SOUL? This clears the application preferences and can help.
-
original title:
Hi all
I desperately need help. I recently bought a touchscreen "All-in-one" PC "Packard Bell OneTwo M.
I plugged my Xbox via HDMI port to the rear and the visuals are great, the only problem I have is volume transmitted through the built-in speakers is very strong, I used the keys function keyboard to try to change the volume but no succession, the remote that I have provided with the PC has also volume buttons but them seems to change the volume of my digital TV which is also integrated in.
Any help is appreciated
ConcerningHello
You can adjust the volume on your computer by following the steps in the link below:
Adjust the sound level on your computer
http://Windows.Microsoft.com/en-us/Windows7/adjust-the-sound-level-on-your-computerIt will be useful.
-
I'm the author, but I can't remove security (encrypt your digital ID), the menu is grey.
You cannot delete always security, signatures or enable. Therefore, it is vital to keep a file unprotected in case you want to change.
-
"The Audio Service is not working" - read a few other threads but without success
Hello
Thanks for any help I receive in advance,
my sound was working perfectly last night, done a windows update and resolve now them audio custom work and cannot solve the problem with an automatic, the message I get is:
Problems found: one or more audio device does not work currently not fixed
Any help would be appreciated
Hello!!! can you tell me you have a single machine windows7 or mutiple.
I suggest two things here
(1) try to copy and merge the audio of an another windows7 home premium or better service
You can do this by going into the Registry Editor (make sure that the other computer is also a 32-bit system)
HKLM/system/current control set/services/audiosrv click audiosrv and then on the file menu, select export and save the file to a USB key or drive.
While copy on your machine and merge. Then restart your system.
(2) you can try an upgrade on the spot with the windows7 dvd. Where you can repair the windows all without losing what.
Thank you. :)
-
I created a few files containing images in my photo camera and selected so that these records be hidden. The images themselves of these hidden folders were always in my folder images in 'media' so I hid each image as well. I have read other suggestions to go explore and then selecting the option "Show hidden" and what I have hidden NOTHING will appear. Hidden folders do not appear, nor the individual hidden images. I've looked everywhere. Help, please! Thank you.
Well, I tried to reproduce what you were doing. For me, it works exactly as it should:
- I created a folder on my map of media, called 'test '.
- I put a picture in this folder
- I hid the image
- I then hid the folder
- Without 'Show hidden', the folder does not appear
- With 'Show hidden', the folder will appear greyed out, and I can bring up its properties and display it
- Once the folder is not hidden, I can then navigate inside, then, seeing the photo file greyed, I can also display
So I don't quite know why it does not work in your case... not my not adequately replicate what you did?
-
Try to install the Microsoft updates without success
Original title: Windows 7 updates
For more than a week now. I tried to install Microsoft updates without success. I tried on all the "fixes", I was in charge of online. Including this detailed solution which did not work.
Tried this three times - without success. Will try then?
I'm on a Lenovo B50-45, computer laptop 64 bit.
Thank you
Yes how worked the other?
It seems to do the job for many,
Switch your windows update setting to never check the updates temporarily
Restart the machine
Then you download this from your download folder run from there.
https://TechNet.Microsoft.com/library/security/MS16-039?f=255&MSPPError=-2147217396
Download the x 86 for 32-bit or x 64 for 64-bit
Install it and restart when prompted too after he did a search of stand-alone for updates that should not
take too long, it took all of 5 seconds, '' If '' windows update settings are turned on forever check
updates before running from the downloads folder.
Once it installs and restarts
You can reset your updates affecting everything you had before default =...
Then check the updates manually.
I think that the solution came from Softpedia and Joel_CS posted on this thread,
http://News.Softpedia.com/news/Windows-Update-hanging-when-downloading-April-12-patches-502886.shtml
You must scroll down for Joel SC post threads, it is the last answer on this page,
-
How can we add a text field on the stage, but without the text label?
How can we add a text field on stage, but without the left text label by default? I want just the field.
I thought about it. Go to the page layout palette and change the options of caption for the text box.
-
tried to adjust lance FW as primary, without success, any suggestions would be greatly appreciated
Steve
@careyonadobe, to add to the answer of Thomas, another thing, you can try to do is do not use the list "Preset" editors pick "Photoshop". Instead, click on '+' sign on my screenshot below, browse to the location of Photoshop, select the .exe or .app for Photoshop file in your hard drive. See if it helps.
-
It's annoying, I tried to install without success. Pop - up said that it would turn off my computer. This notebook is a gift from my brother last week.
I want to just pop up to stop appearing. I'm not very computer savvy and don't want to mess up my new computer. My laptop that is running Windows XP 64-bitIf you Novatel Wireless devices, see about updating its drivers. As said by Kosh, look in Device Manager for any indication of missing or damaged device drivers and update.
Note:
I suspect that your brother had once a Novatel wireless modem attached, so ask him.
-
I would like to make an account has been temporarily blocked, but nothing seems to work.
I changed the password and all the other suggestions that are on the computer, but I get no results.
I now have a new hotmail account, but I would like to revert to the original and to recover all my information
Need help I'm lost
LASTSTRAW
Hello
The question you have posted will be well suited in Windows Live Solution Center. You can visit the below link to find a Forum that will provide the support that you have requested.
http://www.windowslivehelp.com/product.aspx?ProductID=1 -
null
On the 755 p or are you referring to another device like the Treo Pro?
To remove the battery - just remove the back cover and remove the battery.
Message relates to: Centro (Sprint)
Maybe you are looking for
-
How can I stop my firefox to automatically extend to cover the toolbars.
It just started. When I'm on firefox, the screen widens ensure automatically toward the top of the upper and lower toolbar. When I put my cursor on top, it reappears. the background toolbar does not work. How can I get it back to normal?
-
When I turn off my computer, the 'stand-by' option is gray. I have a Toshiba Satellite A30. There are some files that I need to download?
-
Qosmio G20-102 TV TUNER: how to get this to work - what cables are required?
Hey everybody, I just installed vista on my laptop QOSMIO G20-102 (PQG20), I have media library now.My laptop came not like MEDIA CENTER EDITION, it came under the home edition of Windows XP (laptop purchased in July 2005).I got 3 cables which I have
-
Web designed by Mac can run on Microsoft
I wonder whether or not we use Mac for Web site design, Microsoft users can open and run the Web site perfectly. And what applications are recommended for MacBook iOS 10.5.8? Thank you.
-
I installed it under 7, I've done all the Troubleshooting compatibility mode, but it appears always looking like he works in 16 colors.