Android Open Source - DoceYDos-android-app-demo Splash Activity






From Project

Back to project page DoceYDos-android-app-demo.

License

The source code is released under:

MIT License

If you think the Android project DoceYDos-android-app-demo listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.raiseapps.doceydos;
/* ww  w.  ja  v  a 2s . co  m*/
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;

public class SplashActivity extends Activity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.splash_activity);
    
    Thread timer = new Thread(){
      public void run(){
        try{
          sleep(4000);
        } catch(InterruptedException e){
          e.printStackTrace();
        } finally{
          Intent openStartingPoint = new Intent("com.riseapp.doceydos.MENUINICIAL");
          startActivity(openStartingPoint); 
        }
      }
    };
    timer.start();
  }
  
  
  

  @Override
  public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.splash_activity, menu);
    return true;
  }

  @Override
  protected void onPause() {
    // TODO Auto-generated method stub
    super.onPause();
    finish();
  }
  
  

}




Java Source Code List

com.raiseapps.doceydos.GetHtmlEj.java
com.raiseapps.doceydos.MenuInicial.java
com.raiseapps.doceydos.Podcast.java
com.raiseapps.doceydos.RecetasInfo.java
com.raiseapps.doceydos.RecetasLista.java
com.raiseapps.doceydos.Recetas.java
com.raiseapps.doceydos.SplashActivity.java
com.raiseapps.doceydos.visorClienteWeb.java