my application force closes but compiler doesn't show any errors at all i have provided the code
package my.android;
package com.google.android.gms.auth.sample.helloauth;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import java.util.Timer;
import java.util.TimerTask;
public class HelloActivity extends Activity {
/** Called when the activity is first created. */
int time;
TextView tv;
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
time = 0;
Timer t = new Timer();
t.scheduleAtFixedRate(new TimerTask() {
public void run() {
runOnUiThread(new Runnable() {
public void run() {
tv = (TextView) findViewById(R.id.tvDisplay);
tv.setText(time);
time += 1;
}
});
}
}, 0, 10000);
}
}