I need to set text to textView from thread. All code is created in oncreate()

something like

public TextView pc;

    oncreate(..) {
        setContentView(R.layout.main);
        pc = new TextView(context);
        Thread t =new Thread() {
            public void run() {
                pc.setText("test");
        }};
        t.start();

This crashes my app. How can I set text from thread?

Edit
Report