Code example for StringBuilder

Methods: append, toString

0
 
    /** 
     * Rekey the database.  Force garbage collection to try and flush password from memory as quickly as possible. 
     */ 
    public void rekey(String password) {
        mDb.execSQL("PRAGMA rekey = '" + password + "'");
        System.gc();
    } 
 
    /** 
     * Close the database 
     */ 
    public void close() { 
        mDbHelper.close();
    } 
 
    public void initialPopulate() { 
            float now = (float) (System.currentTimeMillis()/1000);        
            add_new(0, 
                "Witness to the event", 
                "[SAMPLE MESSAGE] I saw them being taken away in the car--just swooped up like that.  (This is an example of a message we have created that is just marked as 'outgoing'.  The system can be easily used for spreading personal testimonials like this one.)", false, 0, 0);