Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
jmagar
Posts: 18
Registered: ‎11-12-2009
My Device: Bold 9000
Accepted Solution

Self Inflicted EventLog Spam

[ Edited ]

I goofed up: 

 

 

EventLogger.register(UIDGenerator.getUID(), Version.getAppName(), EventLogger.VIEWER_STRING);

 

In my Logging class I used the above line to register in the event logger.  The problem if you can't see it is that everytime I run my app it creates a new UID and thus it appears to be a new, never before seen, app.  I should have used a hash on the app name or some such non-changing value to register with the event log...

 

Well, now my device is terribly slow when trying to access the Event Log via Alt+LGLG.  When you try to change the event log filter there's my app listed hundreds of times...

 

I tried to wiping the handset, but that did not clear the registry.

 

Is there any way to reset the Event Log Registry?

 

(Device Bold 9000 4.6.0.303)

 

Please use plain text.
Developer
rcmaniac25
Posts: 1,804
Registered: ‎04-28-2009
My Device: Z10 (STL100-4)-10.2.1.2174, Z10 (STL100-3)-10.3.0.700 Dev OS, Z30 (STA100-5)-10.3.0.700 Dev OS, PlayBook (16GB)-2.1.0.1917
My Carrier: Verizon

Re: Self Inflicted EventLog Spam

Plug your BlackBerry into your computer and do "javaloader.exe -usb cleareventlog"

---Spends time in #blackberrydev on freenode (IRC)----
Three simple rules:
1. Please use the search bar before making new posts.
2. "Like" posts that you find helpful.
3. If a solution has been found for your post, mark it as solved.
--I code too much. Well, too bad.
Please use plain text.
Developer
Ted_Hopp
Posts: 1,305
Registered: ‎01-21-2009
My Device: Not Specified

Re: Self Inflicted EventLog Spam

Isn't there a "Clear log" entry on the menu once you have the event log open?




Solved? click "Accept as solution". Helpful? give kudos by clicking on the star.
Please use plain text.
Developer
jmagar
Posts: 18
Registered: ‎11-12-2009
My Device: Bold 9000

Re: Self Inflicted EventLog Spam

Perhaps I should call this "EventLog Meta Spam".

 

The problem is not with individual messages.  Yes I can clear events as described above. 

 

The problem is that I have registered my app with difference UID's everytime the app loaded, and thus when you follow Menu -> Options you find my app listed there hundreds of times, instead of just once.

 

 

I want to clear the Meta Data associated with the Event Log.

 

Thanks for the above tips though.  I hadn't tried the javaloader trick:   there's something new for me to explore.

 

 

 

Please use plain text.
Developer
jmagar
Posts: 18
Registered: ‎11-12-2009
My Device: Bold 9000

Re: Self Inflicted EventLog Spam

[ Edited ]

Found a method thanks to the above note about Javaloader:

 

 

javaloader -u wipe -a

 

 

This wipes the applications fron the device... and it booted up with a 507 error message.

 

Using the Desktop Manager I re-installed the OS and then carefully restored my important data and settings from a backup I made.  I did NOT restore:

  • Application Permissions
  • Content Store
  • On-board Device Memory

 

I suspect this worked because I did not re-apply the On-board Device Memory. 

 

 

So if you are faced with a similar problem:

  1. backup your device
  2. trash the software on the device with the above wipe command
  3. be careful about what you restore from the backup.
Please use plain text.