moviemastersdk
Newbie
Code:
package com.danielholst.soundmixer;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
public class LoadingSplashScreen extends Activity {
/** Called when the activity is first created. */
protected boolean _active = true;
protected int _splashTime = 5000; // time to display the splash screen in ms
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.splash);
// thread for displaying the SplashScreen
Thread splashTread = new Thread() {
@Override
public void run() {
try {
int waited = 0;
while(_active && (waited < _splashTime)) {
sleep(100);
if(_active) {
waited += 100;
}
}
} catch(InterruptedException e) {
// do nothing
} finally {
finish();
startActivity(new Intent("com.danielholst.soundmixer.DRUMPAD"));
stop();
}
}
};
splashTread.start();
}
}
what did i do wrong
xml here
Code:
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar" >
<activity
android:name=".LoadingSplashScreen"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".drumpad"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.DRUMPAD" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
</application>