git clone of logicmail with some fixes/features added
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Build process fixes

git-svn-id: https://logicmail.svn.sourceforge.net/svnroot/logicmail/trunk@376 5c734088-3d25-0410-9155-b3c3832efda5

octorian ceae8ce0 d07f9438

+58 -19
+3 -2
LogicMail/build.xml
··· 42 42 version="${module.version}" 43 43 type="cldc" 44 44 midletclass="org.logicprobe.LogicMail.LogicMail" 45 - icon="logicmail.png"> 46 - <entry arguments="autostart" 45 + icon="logicmail.png" 46 + arguments="-build:${module.build}"> 47 + <entry arguments="-build:${module.build} autostartup" 47 48 systemmodule="true" 48 49 runonstartup="true" 49 50 startuptier="7"/>
+6 -2
LogicMail/project.properties
··· 7 7 module.vendor=Derek Konigsberg 8 8 module.copyright=Copyright (c) 2008, Derek Konigsberg 9 9 module.version=1.9.0 10 - jde421.home=C:/Program Files/Research In Motion/BlackBerry JDE 4.2.1 11 - jde450.home=C:/Program Files/Research In Motion/BlackBerry JDE 4.5.0 10 + module.build=0 11 + # 12 + # Uncomment and set the paths to the JDEs to build with 13 + # 14 + #jde421.home=C:/Program Files/Research In Motion/BlackBerry JDE 4.2.1 15 + #jde450.home=C:/Program Files/Research In Motion/BlackBerry JDE 4.5.0
+39 -6
LogicMail/src/org/logicprobe/LogicMail/AppInfo.java
··· 47 47 private static Bitmap rolloverIcon = Bitmap.getBitmapResource("logicmail-rollover.png"); 48 48 private static Bitmap newMessagesIcon = Bitmap.getBitmapResource("logicmail-new.png"); 49 49 private static Bitmap newMessagesRolloverIcon = Bitmap.getBitmapResource("logicmail-new-rollover.png"); 50 + private static String appName; 51 + private static String appVersion; 52 + 53 + /** 54 + * Initializes the application information from the descriptor and the 55 + * command-line arguments. This method must be called on startup. 56 + * @param args Arguments 57 + */ 58 + public static synchronized void initialize(String args[]) { 59 + String build = null; 60 + for(int i=0; i<args.length; i++) { 61 + if(args[i].indexOf("-build:") != -1) { 62 + int p = args[i].indexOf("-build:"); 63 + int q = args[i].indexOf(' '); 64 + if(q == -1) { 65 + build = args[i].substring(p + 7); 66 + } 67 + else { 68 + build = args[i].substring(p + 7, q); 69 + } 70 + } 71 + } 72 + 73 + ApplicationDescriptor appDesc = 74 + ApplicationDescriptor.currentApplicationDescriptor(); 75 + 76 + appName = appDesc.getName(); 77 + 78 + StringBuffer buf = new StringBuffer(); 79 + buf.append(appDesc.getVersion()); 80 + if(build != null) { 81 + buf.append(" ("); 82 + buf.append(build); 83 + buf.append(')'); 84 + } 85 + appVersion = buf.toString(); 86 + } 50 87 51 88 public static String getName() { 52 - ApplicationDescriptor appDesc = 53 - ApplicationDescriptor.currentApplicationDescriptor(); 54 - return appDesc.getName(); 89 + return appName; 55 90 } 56 91 57 92 public static String getVersion() { 58 - ApplicationDescriptor appDesc = 59 - ApplicationDescriptor.currentApplicationDescriptor(); 60 - return appDesc.getVersion(); 93 + return appVersion; 61 94 } 62 95 63 96 public static Bitmap getIcon() {
+9 -2
LogicMail/src/org/logicprobe/LogicMail/LogicMail.java
··· 62 62 * 63 63 * @param autoStart True if this is the autostart instance, false for normal startup 64 64 */ 65 - public LogicMail(boolean autoStart) { 65 + public LogicMail(String[] args) { 66 + boolean autoStart = false; 67 + for(int i=0; i<args.length; i++) { 68 + if(args[i].indexOf("autostartup") != -1) { 69 + autoStart = true; 70 + } 71 + } 72 + AppInfo.initialize(args); 73 + 66 74 if(autoStart) { 67 75 doAutoStart(); 68 76 } ··· 132 140 // Configure the rollover icons 133 141 HomeScreen.updateIcon(AppInfo.getIcon(), 0); 134 142 HomeScreen.setRolloverIcon(AppInfo.getRolloverIcon(), 0); 135 - 136 143 // Configure the notification source 137 144 NotificationsManager.registerSource(AppInfo.GUID, eventSource, NotificationsConstants.CASUAL); 138 145
+1 -7
LogicMailStartup/src/org/logicprobe/LogicMail/LogicMailStartup.java
··· 56 56 // Register with the event logger 57 57 EventLogger.register(AppInfo.GUID, "LogicMail", EventLogger.VIEWER_STRING); 58 58 59 - LogicMail app; 60 - if (args.length > 0 && args[0].equals("autostartup")) { 61 - app = new LogicMail(true); 62 - } 63 - else { 64 - app = new LogicMail(false); 65 - } 59 + LogicMail app = new LogicMail(args); 66 60 app.run(); 67 61 } 68 62 }