BlackBerryForums.com : Your Number One BlackBerry Community  
   

»Sponsored Links



Closed Thread
 
LinkBack Thread Tools
  (#1 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default FREE/SOURCE Included: Quick Note Utility, one key access, clipboard editing utility - 02-02-2006, 01:17 AM

BlackBerryForums exclusive -- Free utility with source code.

PURPOSE: BlackBerry Application to permit one keypress access to typing notes. This application is useful for people who want to be able to start creating notes immediately upon one click, without any steps, faster than MemoPad. When this application is closed, the contents of the note is Copied & Pasted to the clipboard for future a Paste operation.
PHP Code:
/*
* QuickNote.java
* This is the Version 1.0 Source Code -- For Version 1.1 Source, download the .zip instead.
* _________________________________________________________________________________________________

* PURPOSE: BlackBerry Application to permit one keypress access to typing notes. This application 
* is useful for people who want to be able to start creating notes immediately upon one click, 
* without any steps, faster than MemoPad. When this application is closed, the contents of 
* the note is Copied & Pasted to the clipboard for future a Paste operation..
* _________________________________________________________________________________________________

* Written February 2006 by Mark Rejhon, on behalf of BlackBerryForums.com users.

* LICENSING:
* This is free software. 
* BINARY and SOURCE released under the GNU GENERAL PUBLIC LICENSE, VERSON 2, www.gnu.org
* If you need an original, proprietary licensed copy, please contact Mark Rejhon.
* If you need Mark Rejhon's resume, please contact Mark Rejhon at www.marky.com for the 
* latest copy of his resume.

*/
import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.ui.UiApplication;
import net.rim.device.api.system.Clipboard;
import net.rim.device.api.system.Characters;
// _________________________________________________________________________________________________
// Main startup class
public class QuickNote extends UiApplication
{
    
// Program entry point.
    
public static void main(String[] argv)
    {
        
QuickNote c = new QuickNote();
        try
        {
            
c.enterEventDispatcher();
        }
        catch(
Exception e)
        {
            final 
String msg e.getMessage();
            
net.rim.device.api.ui.component.Dialog.alert("Error Starting Application:\n" msg);
        }
    }
    
// Displays the screen
    
public QuickNote()
    {
        
pushScreen(new QuickNoteScreen());
    }
}
 
// _________________________________________________________________________________________________
// Note textbox class
final class QuickNoteScreen extends MainScreen
{
    
AutoTextEditField     QuickNoteText null;
 
    
// Create Screen
    
public QuickNoteScreen()
    {
        
super(DEFAULT_MENU DEFAULT_CLOSE);
 
        
// Add a title
        
setTitle(new LabelField("Quick Note"LabelField.ELLIPSIS LabelField.USE_ALL_WIDTH));
        
// Add a blank textbox
        
QuickNoteText = new AutoTextEditField();
        
add(QuickNoteText);
    }
    
// Close Handler
    
public boolean onClose()
    {
        
// Upon close, copy text contents into clipboard for Copy and Paste operations
        
Clipboard.getClipboard().put(QuickNoteText.getText());
        
System.exit(0);
        return 
true;
    }

Source code and BlackBerry desktop installable version is below. The hotkey is "Q". Hitting Esc closes QuickNote with the text automatically copied to the Clipboard, for pasting. I've created a custom icon that roughly resembles a post-it note with an exclamation mark on it.

It is also very useful for editing your clipboard too: You can reopen QuickNote, paste, edit the pasted text, and close QuickNote.

This code was created upon a request by a BlackBerryForums user, and also because I have a personal need for this utility. Also, including the QuickCompose email app too as well:



MarkyBerryUtils Wireless Download:

Download Quick Note Via BlackBerry:
www.marky.com/files/bb/QuickNote.jad

PURPOSE: One hotkey access to immediately jotting down notes that is automatically copied to the clipboard. Requires BlackBerryOS 3.6 or later.

Download Quick Compose Via BlackBerry:
www.marky.com/files/bb/QuickCompose.jad
PURPOSE: One hotkey access to immediately composing a blank new email message. Requires BlackBerryOS 4.1 or later. This readds the missing Compose icon from earlier BlackBerryOS software, while using the new convenient New Email interface of OS 4.1.



MarkyBerryUtils Desktop Download + Source:
Attached Files
File Type: zip QuickCompose_v102.zip (2.7 KB, 110 views)
File Type: zip QuickNote_v12.zip (5.0 KB, 91 views)
File Type: zip MarkyBerryUtils-Source_2007-02-03.zip (89.9 KB, 69 views)


Thanks,
Mark Rejhon

Questions? New BlackBerry User?

Last edited by Mark Rejhon : 02-03-2007 at 09:46 PM.
   
Sponsored Links
Please Login or Register to Remove these Advertisements!

  (#2 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-02-2006, 01:33 AM

This utility was inspired by this thread:
http://www.blackberryforums.com/showthread.php?t=25158


Thanks,
Mark Rejhon

Questions? New BlackBerry User?
   
  (#3 (permalink)) Old
Micpip Offline
Thumbs Must Hurt
 
Posts: 57
Join Date: Jul 2005
Location: Vero Beach, FL.
Model: 8330
Carrier: Sprint
Default 02-02-2006, 08:28 AM

Mark,

will quick notes work with the 7100i??? (does the shorting keyboard mess with the settings)


319CC177

DO YOU BLACKBERRY?
   
  (#4 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-02-2006, 05:37 PM

Yes, QuickNote works on the 7100i but I don't think you will have the hotkey.
If there is a side 'convenience key' on the 7100i like there is on the 8700, you can use that instead.


Thanks,
Mark Rejhon

Questions? New BlackBerry User?
   
  (#5 (permalink)) Old
Micpip Offline
Thumbs Must Hurt
 
Posts: 57
Join Date: Jul 2005
Location: Vero Beach, FL.
Model: 8330
Carrier: Sprint
Default 02-02-2006, 06:32 PM

that's what i did

Thanks


319CC177

DO YOU BLACKBERRY?
   
  (#6 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-03-2006, 12:55 PM

Another method is to use PocketDay (third party software) to allow you to assign phone keypad hotkeys to applications. (If you do, then you'd have to press the phone button before dialing, but this would be another solution to the problem of hotkeys)


Thanks,
Mark Rejhon

Questions? New BlackBerry User?
   
  (#7 (permalink)) Old
stevew Offline
Talking BlackBerry Encyclopedia
 
stevew's Avatar
 
Posts: 285
Join Date: Jan 2005
Location: Montreal
Model: 8830
Carrier: Bell
Default 02-03-2006, 03:31 PM

Just downloaded both utilities...the C & the Q...sweet...works great in fact! Thanks Mark!

Edit: Got one for SMS by chance?


Besadmin
8830

Previously owned:
At least 15 different BB's since 1999 -- too many to list...

Last edited by stevew : 02-03-2006 at 03:33 PM.
   
  (#8 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-03-2006, 06:37 PM

I couldn't find an API to launch an SMS Message compose interface. HOWEVER, the easiest way is that you can use the existing "A"ddressbook hotkey already on BlackBerry. Select a name, then click "Compose SMS". I don't think there's a way to make this any simpler, unfortunately...


Thanks,
Mark Rejhon

Questions? New BlackBerry User?
   
  (#9 (permalink)) Old
stevew Offline
Talking BlackBerry Encyclopedia
 
stevew's Avatar
 
Posts: 285
Join Date: Jan 2005
Location: Montreal
Model: 8830
Carrier: Bell
Default 02-03-2006, 08:13 PM

I installed both APPS, right away after the install, my BB is locking up to the point where I have to remove/reinstall the battery to get it back. Wondering if one of these apps could be the issue since it has never happened in the 3 months I have had it...


Besadmin
8830

Previously owned:
At least 15 different BB's since 1999 -- too many to list...
   
  (#10 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-03-2006, 08:46 PM

Do you have the old Compose utility installed by chance? I am wondering if having both the Ramble and my version installed at the same time, causes any problems if both are installed at the same time?

Next time your BlackBerry locks up, try this: Hold ALT and hit Esc. Does this allow you switch away from the locked application? Which application is locked? Switch to each application until you find the nonresponding one, and report back -- I'd like to know if it's mine or someone elses'

Anyone else experiencing any problems? I have had no lockup problems on my 8700R (upgraded to OS 4.1.0.206 released December 19th, 2006)


Thanks,
Mark Rejhon

Questions? New BlackBerry User?
   
  (#11 (permalink)) Old
stevew Offline
Talking BlackBerry Encyclopedia
 
stevew's Avatar
 
Posts: 285
Join Date: Jan 2005
Location: Montreal
Model: 8830
Carrier: Bell
Default 02-03-2006, 08:51 PM

No...I uninstalled it 1st...and when it locked up...nothing would work...now I've uninstalled the Quick Note to see if the problem is that app, the combination of the two...or the Quick Compose...I'll keep you posted...BTW...I'm also at the same OS version as you are.


Besadmin
8830

Previously owned:
At least 15 different BB's since 1999 -- too many to list...
   
  (#12 (permalink)) Old
stevew Offline
Talking BlackBerry Encyclopedia
 
stevew's Avatar
 
Posts: 285
Join Date: Jan 2005
Location: Montreal
Model: 8830
Carrier: Bell
Default 02-06-2006, 07:15 AM

I uninstalled the Quick Note utility and the device continued to experience the same lock up problems. I then uninstalled the Quick Compose utility and installed Rambler's corrected verison and have not yet had issue...I don't know if anyone else has been having the same problem or not...I don't have other software installed and am running the latest OS from Robbers Wireless...


Besadmin
8830

Previously owned:
At least 15 different BB's since 1999 -- too many to list...
   
  (#13 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-06-2006, 08:15 PM

I found the problem. I have fixed QuickCompose to Version 1.02

A System.exit(0) needed to be added, which Ramble verison's did not have. So in attempting to fix a bug that Ramble's version had, I added a different bug. Whoops! Now all known bugs have been eliminated.

Edited original message again -- download again.


Thanks,
Mark Rejhon

Questions? New BlackBerry User?
   
  (#14 (permalink)) Old
stevew Offline
Talking BlackBerry Encyclopedia
 
stevew's Avatar
 
Posts: 285
Join Date: Jan 2005
Location: Montreal
Model: 8830
Carrier: Bell
Default 02-06-2006, 11:07 PM

Was about to do the OTA but noticed the version at 0.0?


Besadmin
8830

Previously owned:
At least 15 different BB's since 1999 -- too many to list...

Last edited by stevew : 02-06-2006 at 11:08 PM. Reason: typo
   
  (#15 (permalink)) Old
stevew Offline
Talking BlackBerry Encyclopedia
 
stevew's Avatar
 
Posts: 285
Join Date: Jan 2005
Location: Montreal
Model: 8830
Carrier: Bell
Default 02-07-2006, 08:27 AM

I loaded the .ZIP from the desktop...same version (0.0) appears in the app, but now it seems that the problem has gone away! Great and thanks Mark!


Besadmin
8830

Previously owned:
At least 15 different BB's since 1999 -- too many to list...

Last edited by stevew : 02-07-2006 at 05:25 PM. Reason: Typo
   
  (#16 (permalink)) Old
fungusmud Offline
Knows Where the Search Button Is
 
Posts: 19
Join Date: Apr 2005
Location: Northeast Pa
Model: 8330
Carrier: Verizon
Default 02-08-2006, 08:04 AM

Mark... Not sure if you were aware of this, but the QuickCompose on a 7250 running the Telstra 4.1.0.268 spawns a compose for SMS, not e-mail. I've confirmed this with both your and Ramble's OTA code as of 2/8/06

If you would like me to test new code on the 7250, send me a link.

--Dan
   
  (#17 (permalink)) Old
KonTiki Offline
BlackBerry Extraordinaire
 
KonTiki's Avatar
 
Posts: 2,619
Join Date: Jun 2005
Location: NJ, USA
Model: 7250
Carrier: Verizon
Default 02-08-2006, 11:53 AM

Quote:
Originally Posted by fungusmud
Mark... Not sure if you were aware of this, but the QuickCompose on a 7250 running the Telstra 4.1.0.268 spawns a compose for SMS, not e-mail. I've confirmed this with both your and Ramble's OTA code as of 2/8/06

If you would like me to test new code on the 7250, send me a link.

--Dan
Same thing happened to me, I am only using the Quick Notes at the moment and that is a great app.


* * * AONEHOBO * * *
BB 7250 User Plantronics V510 4.1 OS
Should Read:
[Stinsonddog's Blackberry Tips]

& JL_Cmder!
   
  (#18 (permalink)) Old
Mark Rejhon Offline
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Posts: 4,831
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: 8310
Carrier: Rogers
Default 02-08-2006, 04:01 PM

Hi,

I have updated QuickNote to Version 1.1 with an "Options" screen. Configurable font sizes (From super small to super size) and automatic paste on startup. Still only about 100 lines including all these new features. Source code download is also updated too. Go and download again.