Android Open Source - SSPIA Transition Class






From Project

Back to project page SSPIA.

License

The source code is released under:

MIT License

If you think the Android project SSPIA 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.fiec.sspia.util;
/*from w ww.  j  a  v a 2s  .c o m*/
import com.fiec.sspia.db.SolarDb;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;

public class TransitionClass {
  protected final static String[] _KEYS = {"titles","images","details"}; 
  private String[] arg1, arg3, arg5;
  private int[] aux, arg2, arg4;
  private int aux2;
  private SolarDb db;
  
  /***
   * 
   * PASAR PARAMETRO DE SATELLITE ?URGE!!
   */
  
  public TransitionClass(FragmentActivity act, String[] arg1, int[] arg2) {
    this.arg1 = arg1;
    this.arg2 = arg2;
    db = new SolarDb(act);
  }
  
  public int[] setParams(String pname, int pos, int pos2){
    this.db.open();
    pos = db.getIdbyPname(pname);
    this.aux = db.getSatellitesByPlanetId(pos);
    this.aux2 = db.getSatDetailId(aux[pos2]);
    this.arg5 = db.getSatDetails(aux2+1);
    this.db.close();
    return aux;
  }
  
  public void setParams(String pname, int pos){
    this.db.open();
    pos = db.getIdbyPname(pname);
    this.aux = db.getSatellitesByPlanetId(pos);
    this.db.close();
  }
  
  public Bundle getParams(){
    Bundle bundle = new Bundle();
    
    arg3 = new String[aux.length];
    arg4 = new int[aux.length];
    
    for(int i = 0; i<arg3.length; i++){
      arg3[i] = arg1[aux[i]-1];
      arg4[i] = arg2[aux[i]-1];
    }
    
    bundle.putStringArray(_KEYS[0], arg3);
    bundle.putIntArray(_KEYS[1], arg4);
    bundle.putStringArray(_KEYS[2], arg5);
    return bundle;
  }

}




Java Source Code List

com.fiec.sspia.buff.DefaultNoti.java
com.fiec.sspia.buff.PlanetClass.java
com.fiec.sspia.buff.PlanetSource.java
com.fiec.sspia.buff.Tag.java
com.fiec.sspia.db.Celestial.java
com.fiec.sspia.db.DBHelper.java
com.fiec.sspia.db.DbAuxClass.java
com.fiec.sspia.db.Planets.java
com.fiec.sspia.db.Satellites.java
com.fiec.sspia.db.SolarDb.java
com.fiec.sspia.main.InformationTab.java
com.fiec.sspia.main.SatellitesClass.java
com.fiec.sspia.main.SolarActivity.java
com.fiec.sspia.main.TabsPlanets.java
com.fiec.sspia.mclass.MainClass.java
com.fiec.sspia.mclass.MainFragment.java
com.fiec.sspia.mclass.SSNotific.java
com.fiec.sspia.mclass.SetttingsClass.java
com.fiec.sspia.mclass.SplashClass.java
com.fiec.sspia.system.BroadcastRec.java
com.fiec.sspia.system.SspiaService.java
com.fiec.sspia.system.StartingNotis.java
com.fiec.sspia.util.AbstrCd.java
com.fiec.sspia.util.CdClass.java
com.fiec.sspia.util.CustomInfoAdapter.java
com.fiec.sspia.util.CustomMenuAdapter.java
com.fiec.sspia.util.FillMenuAdapter.java
com.fiec.sspia.util.JSONParser.java
com.fiec.sspia.util.MainGridAdapterClass.java
com.fiec.sspia.util.MenuSettings.java
com.fiec.sspia.util.SSInterfaceNoti.java
com.fiec.sspia.util.SatelliteGridAdapterClass.java
com.fiec.sspia.util.TempClass.java
com.fiec.sspia.util.TransitionClass.java