mySplash = new Splash(this, "blart.png");
// dummy delay so we can see the Splash!
for(int i = 0; i < 50000; i++) { //PROBLEM HERE
System.out.println(i) ;
}
Use the next code instead of for loop:
while(true)
{
if(new File("test.test").exists())
{
break;
}
else
{
try
{
Thread.sleep(100);
}
catch (InterruptedException e){}
}
}