Code example for Thread

0
        new Thread(new Runnable() {
            public void run() { 
                runRssFeed(); 
            } 
        }).start();
        new Thread(new Runnable() {
            public void run() { 
                runEntries(); 
            } 
        }).start();
    } 
 
    public void onStop() { 
        mStatus = Status.PENDING;
        super.onStop(); 
    } 
 
    private void runRssFeed() { 
        while (mStatus == Status.RUNNING) {
            loadRssFeed(); 
            nap(60*1000);