为什么我在线程中收到此错误?
我使用了正确的语法,但似乎有一些错误!:(
这是屏幕截图 ==> http://i.imgur.com/ccPOz.png?1
编辑:这是代码:
`
package com.pc.threads;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
Thread music_2 = new Thread(){
try{
}catch(InterruptedException e){
e.printStackTrace();
}finally{
Intent music_i = new Intent(MainActivity.this,NewActivity.class);
}
};
}
`