BlackBerry Forums Support Community

BlackBerry Forums Support Community (http://www.blackberryforums.com/index.php)
-   Developer Forum (http://www.blackberryforums.com/forumdisplay.php?f=15)
-   -   FREE/SOURCE Included: Quick Note Utility, one key access, clipboard editing utility (http://www.blackberryforums.com/showthread.php?t=25410)

Mark Rejhon 02-02-2006 02:17 AM

FREE/SOURCE Included: Quick Note Utility, one key access, clipboard editing utility
 
3 Attachment(s)
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(Stringxxx91;xxx93; 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:

Mark Rejhon 02-02-2006 02:33 AM

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

Micpip 02-02-2006 09:28 AM

Mark,

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

Mark Rejhon 02-02-2006 06: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.

Micpip 02-02-2006 07:32 PM

that's what i did

Thanks

Mark Rejhon 02-03-2006 01: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)

stevew 02-03-2006 04:31 PM

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

Edit: Got one for SMS by chance?

Mark Rejhon 02-03-2006 07: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...

stevew 02-03-2006 09: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...

Mark Rejhon 02-03-2006 09: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)

stevew 02-03-2006 09: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.

stevew 02-06-2006 08: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...

Mark Rejhon 02-06-2006 09: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.

stevew 02-07-2006 12:07 AM

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

stevew 02-07-2006 09: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!

fungusmud 02-08-2006 09: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

KonTiki 02-08-2006 12:53 PM

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.

Mark Rejhon 02-08-2006 05: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.

http://www.marky.com/files/bb/screen...uicknote-1.png . http://www.marky.com/files/bb/screen...uicknote-2.png

http://www.marky.com/files/bb/screen...uicknote-3.png . http://www.marky.com/files/bb/screen...uicknote-4.png

http://www.marky.com/files/bb/screenshots/big.jpg

aphr0deity 07-04-2006 06:05 PM

Hi Mark,

I've tried to utilize the Options to change the font sizes, but to no avail. I've downloaded it via the OTA file twice; should I try it via the Desktop Manager?

Thanks!

q6q8 07-11-2006 07:35 AM

thank so muchxxx65281;


All times are GMT -5. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.