Try removing the ; after the new Thread()
________________________________ From: ramesh babu <rameshbabu...@gmail.com> To: "android-developers@googlegroups.com" <android-developers@googlegroups.com> Sent: Friday, June 7, 2013 3:25 PM Subject: [android-developers] help need.... public class intro extends Activity { @Override protected void onCreate(Bundle ramesh) { // TODO Auto-generated method stub super.onCreate(ramesh); setContentView(R.layout.intro); Thread a = new Thread();{ public void run(){ try{ sleep(5000); }catch(InterruptedException e){ e.printStackTrace(); } finally{ Intent b = new Intent("com.ramesh.mp3playerz.STARTINGPOINT"); startActivity(b); } } }; a.start(); } } in the above activity class public void run method shows error as Multiple markers at this line - Syntax error on token "void", @ expected - Syntax error, insert "EnumBody" to complete BlockStatements - Syntax error, insert "enum Identifier" to complete EnumHeaderName - Syntax error, insert "enum Identifier" to complete EnumHeaderName - Syntax error, insert "EnumBody" to complete BlockStatements -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out. -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.