Ignore:
Timestamp:
08/24/07 22:35:28 (5 years ago)
Author:
saua
Message:

bbTracker uses a default track name based on the current date and time now (issue #25)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • bbtracker/trunk/src/org/bbtracker/mobile/gui/TrackNameForm.java

    r75 r94  
    1818package org.bbtracker.mobile.gui; 
    1919 
     20import java.util.Calendar; 
     21 
    2022import javax.microedition.lcdui.Command; 
    2123import javax.microedition.lcdui.CommandListener; 
     
    2628 
    2729import org.bbtracker.Track; 
     30import org.bbtracker.Utils; 
    2831import org.bbtracker.mobile.BBTracker; 
    2932import org.bbtracker.mobile.Preferences; 
     
    5154                track = null; 
    5255 
    53                 final String initialName = "Track " + Preferences.getInstance().getNextTrackNumber(); 
     56                // get the next track number, although we don't use it 
     57                // maybe we can use it for some statistic sometime 
     58                Preferences.getInstance().getNextTrackNumber(); 
     59                final String initialName = Utils.calendarToCompactString(Calendar.getInstance()); 
    5460                initGui(initialName); 
    5561        } 
Note: See TracChangeset for help on using the changeset viewer.