Back to project page 1040_searchlit.
The source code is released under:
GNU General Public License
If you think the Android project 1040_searchlit listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.build2; /* ww w .java2 s .c o m*/ import android.os.Bundle; import android.app.Activity; import android.content.Intent; public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.splash); // mpsplash = MediaPlayer.create(this, R.raw.bannana120); //mpsplash.start(); Thread logoTimer = new Thread(){ public void run(){ try{ int logotimer = 0; while(logotimer < 50){ sleep(100); logotimer++; } startActivity(new Intent("com.example.build.CLEARSCREEN")); } catch (InterruptedException e) { // TODO Auto-generated catch block e.printStackTrace(); } finally{ finish(); } } }; logoTimer.start(); } /* (non-Javadoc) * @see android.app.Activity#onDestroy() */ @Override protected void onDestroy() { // TODO Auto-generated method stub super.onDestroy(); //mpsplash.release(); } /* (non-Javadoc) * @see android.app.Activity#onPause() */ @Override protected void onPause() { // TODO Auto-generated method stub super.onPause(); //mpsplash.pause(); } /* (non-Javadoc) * @see android.app.Activity#onRestart() */ @Override protected void onRestart() { // TODO Auto-generated method stub super.onRestart(); } /* (non-Javadoc) * @see android.app.Activity#onResume() */ @Override protected void onResume() { // TODO Auto-generated method stub super.onResume(); //mpsplash.start(); } /* (non-Javadoc) * @see android.app.Activity#onStart() */ @Override protected void onStart() { // TODO Auto-generated method stub super.onStart(); } /* (non-Javadoc) * @see android.app.Activity#onStop() */ @Override protected void onStop() { // TODO Auto-generated method stub super.onStop(); } }