When my splash screen starts i get tis error in logcat:
11-06 02:36:45.450: E/global(4184): Deprecated Thread methods are not supported.
11-06 02:36:45.450: E/gl
thread.stop() is deprecated method so you have to remove that line from your code.
Thread.stop() has been deprecated for some time now:
This method is inherently unsafe. Stopping a thread with Thread.stop causes it to unlock all of the monitors that it has locked (as a natural consequence of the unchecked ThreadDeath exception propagating up the stack). If any of the objects previously protected by these monitors were in an inconsistent state, the damaged objects become visible to other threads, potentially resulting in arbitrary behavior. Many uses of stop should be replaced by code that simply modifies some variable to indicate that the target thread should stop running. The target thread should check this variable regularly, and return from its run method in an orderly fashion if the variable indicates that it is to stop running. If the target thread waits for long periods (on a condition variable, for example), the interrupt method should be used to interrupt the wait.
In short, you should not be calling stop()
. If you add some details about what your other error is when you remove stop()
, maybe someone can help with that one too.
The answer is in the error message: Thread.stop() is deprecated, and Android does not support deprecated methods.
Perhaps you can try using Thread.sleep() in your onCreate to do the timeout instead.