Friday, June 7, 2013

[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+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate