Android Open Source - infinitep Splash Activity






From Project

Back to project page infinitep.

License

The source code is released under:

Apache License

If you think the Android project infinitep 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 es.daconstenla.infinip.activity;
//from w  w  w  . j  av a2  s. c  o  m
import es.daconstenla.infinip.R;
import es.daconstenla.infinip.R.layout;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class SplashActivity extends Activity {

  @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        
        setContentView(R.layout.activity_splash);
        
        /*       
        ItemCalendarDay item = (ItemCalendarDay) this.findViewById(R.id.dayTesting3);
        Resources res = getResources();
        Random r = new Random();
        int ra = r.nextInt(50),col;
        for(int i = 0 ; i < ra ; i++){
          col = r.nextInt(6);
          switch(col){
          case 0:  item.addElemToBarInfo(new BarElementData(r.nextInt(10),res.getColor(ColorMyCustom.COLOR_SLEEP_LIGHT)));
            break;
          case 1:item.addElemToBarInfo(new BarElementData(r.nextInt(10),res.getColor(ColorMyCustom.COLOR_SLEEP_DEEP)));
            break;
          case 2:item.addElemToBarInfo(new BarElementData(r.nextInt(10),res.getColor(ColorMyCustom.COLOR_EXERCISE_LIGHT)));
            break;
          case 3: item.addElemToBarInfo(new BarElementData(r.nextInt(10),res.getColor(ColorMyCustom.COLOR_EXERCISE_HEAVY)));
            break;
          case 4:item.addElemToBarInfo(new BarElementData(r.nextInt(10),res.getColor(ColorMyCustom.COLOR_NOT_MOVING)));
            break;
          case 5:item.addElemToBarInfo(new BarElementData(r.nextInt(10),res.getColor(ColorMyCustom.COLOR_NOT_MOVING_COMPUTER)));
            break;
          }
        }
        
        item.setNumberOfDay(Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.WEDNESDAY));
        
        
        Calenda cal = (Calenda) this.findViewById(R.id.dayTesting3);
        cal.setDay(12);
        cal.randomFillCalendar();
        
        
        Log.d(this.getClass().getName(),"M "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.MONDAY));
        Log.d(this.getClass().getName(),"T "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.TUESDAY));
        Log.d(this.getClass().getName(),"W "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.WEDNESDAY));
        Log.d(this.getClass().getName(),"T "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.THURSDAY));
        Log.d(this.getClass().getName(),"F "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.FRIDAY));
        Log.d(this.getClass().getName(),"S "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.SATURDAY));
        Log.d(this.getClass().getName(),"S "+Utils.numberOfDaysAfterInWeek(Calendar.MONDAY,Calendar.SUNDAY));
        */
        
  }
  
  public void testButton(View view){
    //Toast.makeText(this, "woooo", Toast.LENGTH_LONG).show();
    
    Intent mainIntent = new Intent().setClass(SplashActivity.this, MainActivity.class);
    startActivity(mainIntent);
      finish();
  }
}




Java Source Code List

com.example.databasetest.FullscreenActivity.java
com.example.databasetest.util.SystemUiHiderBase.java
com.example.databasetest.util.SystemUiHiderHoneycomb.java
com.example.databasetest.util.SystemUiHider.java
com.example.datatest.MainActivity.java
com.example.datatest.database.InfinitepHelper.java
com.example.datatest.database.MovementRaw.java
com.example.datatest.database.MovementSummary.java
com.example.datatest.database.TableMovementRaw.java
com.example.datatest.database.TableMovementSummary.java
com.example.datatest.databaseTest.DatabaseTester.java
com.example.datatest.util.Utils.java
es.daconstenla.infinip.activity.CalendarActivity.java
es.daconstenla.infinip.activity.DayActivity.java
es.daconstenla.infinip.activity.MainActivity.java
es.daconstenla.infinip.activity.RangeActivity.java
es.daconstenla.infinip.activity.SettingsActivity.java
es.daconstenla.infinip.activity.SplashActivity.java
es.daconstenla.infinip.activity.SyncActivity.java
es.daconstenla.infinip.customcomponents.HorizontalGraph.java
es.daconstenla.infinip.customcomponents.InformationBox.java
es.daconstenla.infinip.customcomponents.MonthFragmentTest.java
es.daconstenla.infinip.customcomponents.MonthFragment.java
es.daconstenla.infinip.customcomponents.MonthView.java
es.daconstenla.infinip.customcomponents.MyFragmentMonthAdapter.java
es.daconstenla.infinip.customcomponents.events.OnSwipeTouchListener.java
es.daconstenla.infinip.customcomponents.pieces.ElementBackground.java
es.daconstenla.infinip.customcomponents.pieces.HorGraphBar.java
es.daconstenla.infinip.customcomponents.pieces.ItemCalendarDay.java
es.daconstenla.infinip.customcomponents.pieces.data.BarElementData.java
es.daconstenla.infinip.customcomponents.pieces.data.ColorMyCustom.java
es.daconstenla.infinip.customcomponents.pieces.data.CustomScrollView.java
es.daconstenla.infinip.customcomponents.pieces.data.ItemHorizontalBar.java
es.daconstenla.infinip.database.InfinitepHelper.java
es.daconstenla.infinip.database.MovementRaw.java
es.daconstenla.infinip.database.MovementSummary.java
es.daconstenla.infinip.database.TableMovementRaw.java
es.daconstenla.infinip.database.TableMovementSummary.java
es.daconstenla.infinip.database.utils.Utils.java
es.daconstenla.infinip.unused.AutoResizeTextView.java