I currently have a simple app in the market, now I tried installing it on an Android 4.0 device.
But it fails after my Splashscreen closes. I send a rapport and got this as feedback:
Crash
java.lang.UnsupportedOperationException
Thread.stop()
and
java.lang.UnsupportedOperationException
at java.lang.Thread.stop(Thread.java:1076)
at java.lang.Thread.stop(Thread.java:1063)
at com.lars.PSVWebView.SplashScreen$1.run(SplashScreen.java:35)
this is the code, since last edit:
package com.lars.DrinkRecOrder;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
public class SplashScreen extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
Handler handler = new Handler();
handler.postDelayed(new Runnable() {
public void run() {
Intent intent = new Intent();
intent.setClass(SplashScreen.this, DrinkRecOrderActivity.class);
}{
/* start the activity */
startActivity(new Intent("com.lars.DrinkRecorder.splashscreen.DrinkRecorderActivity"));
}
}, 500);
}
}
So this is my new code… no errors, but doesn’t work either, my app crashes at startup.
By the way… same splashscreen code, different app
This was the answer!