Code example for WeakHashMap

Methods: clear

0
 
     
    public void onTerminate() 
    { 
        // clean up application global 
        this.map.clear();
        this.map = null;
 
        instance = null;
        super.onTerminate(); 
    } 
     
     
    /** 
     * Shows an error dialog to the user. 
     * @param ctx 
     * @param title 
     * @param description 
     */ 
    public void presentError(Context ctx, String title, String description) {
        AlertDialog.Builder d = new AlertDialog.Builder(ctx);