Code example for Timer

0
        super(activity);
 
        this.string = fulltext;
        this.activity = activity;
 
        this.timer = new Timer();
        setAutoLinkMask(Linkify.ALL);
        setLinksClickable(true);
        setMovementMethod(LinkMovementMethod.getInstance());
        setPadding(0, 10, 0, 0);
        setTypeface(Typeface.MONOSPACE);
    } 
 
    private char getRandomChar() { 
        int i = rnd.nextInt(126 - 33);
        return (char) (i + 33);
    } 
 
    public void start() { 
        timer.schedule(getTimerTask(), 0, delay);
Contextual code suggestions in your IDE  Get Codota for Java